commit-groth09

Crates.iocommit-groth09
lib.rscommit-groth09
version0.1.0
sourcesrc
created_at2024-09-29 15:29:21.186282
updated_at2024-09-29 15:29:21.186282
descriptionAn implementation of the commitment scheme described in 'Homomorphic Trapdoor Commitments to Group Elements' by Jens Groth, implemented using BLS12-381.
homepagehttps://github.com/Gabaa/commit-groth09
repositoryhttps://github.com/Gabaa/commit-groth09
max_upload_size
id1390935
size7,610
(Gabaa)

documentation

README

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);
}
Commit count: 8

cargo fmt