Skip to content

Commit 98b04dd

Browse files
Improve example documentation (#108)
This PR updates the example documentation to clarify generator independence.
1 parent bf074cb commit 98b04dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/ringct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ mod test {
2929
let number_outputs = params.get_N();
3030

3131
// Value commitments use the Triptych `G` generator for masks, and need another component for values
32+
// In practice it's essential that `G` and `H` have no efficiently-computable discrete logarithm relationship
33+
// For this example, we'll just make it random; in the real world, you'd use a verifiable hash-based construction
3234
let H = RistrettoPoint::random(&mut rng);
3335

3436
// All output verification keys and value commitments (except ours) look random to us, so just make them random!

0 commit comments

Comments
 (0)