Skip to content

BuildOnViction/privacy-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

privacy-wasm

Binary for improving speed of Bulletproof on browser/nodejs, base on tomoP's precompiled contract

Please refer the white paper for further detail and explanation https://eprint.iacr.org/2017/1066.pdf

MultiRangeProof generator

let bulletProof = mrpProve(amount1_in_decimal, amount2_in_decimal, ... mask_for_amount_1_in_decimal, mask_for_amount_2_in_decimal, ...);

/* Result fields */
/*
  - IPP: (Inner Product Proof)
        - L: Point in hex
        - R: Point in hex
        - A: BigInteger in hex
        - B: BigInteger in hex
        - Challenges: Concat all challenge(bigInteger) in hex
  - Comms: Pederson Commitment for each value with equivalent mask
  - Random Parameters in BulletProof
        -  A: Point in hex
        -  S: Point in hex
        - cx: BigInteger in hex
        - cy: BigInteger in hex
        - cz: BigInteger in hex
        - T1: Point in hex
        - T2: Point in hex
        - Th: Point in hex
        - Tau: Point in hex
        - Mu: Point in hex
*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •