Skip to content

Commit bf0cb42

Browse files
Increase weight entropy (#114)
1 parent 7ca0d41 commit bf0cb42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/proof.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,9 @@ impl TriptychProof {
685685

686686
// Run the Fiat-Shamir response phase to get the transcript generator and weight
687687
let mut transcript_rng = transcript.response(&proof.f, &proof.z_A, &proof.z_C, &proof.z);
688-
transcript_weights.append_u64(b"proof", transcript_rng.as_rngcore().next_u64());
688+
let mut transcript_bytes = [0u8; 32];
689+
transcript_rng.as_rngcore().fill_bytes(&mut transcript_bytes);
690+
transcript_weights.append_message(b"proof", &transcript_bytes);
689691
}
690692

691693
// Finalize the weighting transcript into a pseudorandom number generator

0 commit comments

Comments
 (0)