Skip to content

Commit 87b2a37

Browse files
authored
Update README.md (#61)
Signed-off-by: Michele Orrù <[email protected]>
1 parent 771f848 commit 87b2a37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ relation.set_elements([(G_var, G::generator()), (H_var, H)]);
2929
relation.compute_image(&[x_val, r_val]).unwrap();
3030

3131
// Create non-interactive proof
32-
let protocol = Protocol::from(relation);
33-
let nizk = NISigmaProtocol::<_, ShakeCodec<G>>::new(b"pedersen-proof", protocol);
32+
let nizk = relation.into_nizk(b"pedersen-proof");
3433
let proof = nizk.prove_batchable(&witness, &mut rng)?;
3534
```
3635

0 commit comments

Comments
 (0)