Skip to content

Gabaa/commit-groth09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commit-groth09

A multiplicatively homomorphic commitment scheme, as described in Homomorphic Trapdoor Commitments to Group Elements, implemented using BLS12-381.

Basic usage

Note: committing to bytes is not yet implemented!

fn commit_to_value() -> (Commitment, Randomness) {
    let commitment_key = CommitmentKey::<1>::generate();
    let value = Values::new([G2Affine::generator()]);
    let (commitment, randomness) = commitment_key.commit(&value);
}

About

Homomorphic Trapdoor Commitments to Group Elements (https://eprint.iacr.org/2009/007.pdf). Implemented using BLS12-381.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages