| Crates.io | commit-groth09 |
| lib.rs | commit-groth09 |
| version | 0.1.0 |
| created_at | 2024-09-29 15:29:21.186282+00 |
| updated_at | 2024-09-29 15:29:21.186282+00 |
| description | An implementation of the commitment scheme described in 'Homomorphic Trapdoor Commitments to Group Elements' by Jens Groth, implemented using BLS12-381. |
| homepage | https://github.com/Gabaa/commit-groth09 |
| repository | https://github.com/Gabaa/commit-groth09 |
| max_upload_size | |
| id | 1390935 |
| size | 7,610 |
A multiplicatively homomorphic commitment scheme, as described in Homomorphic Trapdoor Commitments to Group Elements, implemented using BLS12-381.
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);
}