-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move RNGs into
RangeProofTranscript
(#111)
Recent work in #109 uses Merlin's `TranscriptRng` functionality to improve the handling of random number generation, and also refactors transcript operations for safer use through a `RangeProofTranscript` wrapper. A [suggestion](#109 (comment)) by @sdbondi recommends moving the `TranscriptRng` into `RangeProofTranscript` so the prover and verifier aren't responsible for it. This PR adds such a change. It also updates `RangeProofTranscript` to hold a mutable reference to the external random number generator. This ensures the prover and verifier can't accidentally use it instead of the `TranscriptRng`.
- Loading branch information
1 parent
6f1aab6
commit 854dd88
Showing
2 changed files
with
48 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters