commit-groth09 0.1.0

An implementation of the commitment scheme described in 'Homomorphic Trapdoor Commitments to Group Elements' by Jens Groth, implemented using BLS12-381.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# commit-groth09


A multiplicatively homomorphic commitment scheme, as described
in [Homomorphic Trapdoor Commitments to Group Elements](https://eprint.iacr.org/2009/007.pdf), implemented
using [BLS12-381](https://crates.io/crates/bls12_381).

## Basic usage


> Note: committing to bytes is not yet implemented!

```rust
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);
}
```