Skip to content

emilbayes/pedersen-commitment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

pedersen-commitments

Note: This requires a modified libsodium to run without scalar clamping on EC operations

Usage

var pedersen = require('pedersen-commitments')

API

pedersen.PARAM_BYTES

pedersen.DATA_BYTES

pedersen.COMMITMENT_BYTES

pedersen.RBYTES

pedersen.init(H)

pedersen.nums(H, buf)

pedersen.commit(commitment, decommitment, value, H)

var bool = pedersen.open(commitment, decommitment, value, H)

pedersen.accumulateCommitments(acc, c)

pedersen.accumulateDecommitments(acc, r)

Note: this function is NOT constant-time.

Install

npm install pedersen-commitments

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published