-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plonk: transcript hasher #61
Conversation
@vesselinux please rebase onto origin/develop |
Sorry, do you mean rebase onto origin/plonk? |
Oh yes. origin/plonk please. Thanks. |
ef3297b
to
ee34c38
Compare
Rebased on |
793e649
to
2fbad61
Compare
2fbad61
to
78dd119
Compare
…to the transcript hasher constructor (cf. #61 (comment)); added exception handling in case the buffer length is invalid (cf. #61 (comment))
…r process since u is not used by the prover anyway. removed the automatic clearing of the hasher buffer inside get_hash. the caller is now responsible to clear the buffer when reusing the same hasher object. see also PR comment #61 (comment) .
… the class. addresses #61 (comment)
Hasher should either keep a reference (more dangerous), or just allocate it's own internal buffer. Latter is probably preferable. |
…e last round of the prover. we need to compute u even though we are not using it in the prover in order to make sure that the prover and verifier make exactly the same number of calls to transcript_hasher.get_hash(). addresses PR #61 comment #61 (comment)
… input parameter to the constructor. only the object has access to the buffer now. addresses PR #61 comment #61 (comment)
Removed the private buffer variable as an input parameter to the constructor. Only the object has access to the buffer now. |
…ion parameter to the prover and verifier classes. moved the current transcript_hasher class from files srs.* to its own files under tests, the reason being that its implementation is specific to the bls12-381 curve. set the prover and verifier to be instantiated with this bls12-381-specific implementation of transcript_hasher. this commit addresses steps 2. and 4. from comment #61 (comment) of PR#61.
…hat describes the interface of a common transcript hasher. addresses step 1. from comment #61 (comment) of PR#61.
…cript hasher with a while loop directly finding the correct length; addresses #61 (comment) .
…tor_transcript_hasher::get_hash(). addresses #61 (comment) .
…bls12_381_test_vector_transcript_hasher initialized in the constructor. addresses #61 (comment) .
…length and challenge arrays are of same length in transcript hasher constructor; minor edits. addresses lates comments in PR #61 .
…to the transcript hasher constructor (cf. #61 (comment)); added exception handling in case the buffer length is invalid (cf. #61 (comment))
…r process since u is not used by the prover anyway. removed the automatic clearing of the hasher buffer inside get_hash. the caller is now responsible to clear the buffer when reusing the same hasher object. see also PR comment #61 (comment) .
… the class. addresses #61 (comment)
…e last round of the prover. we need to compute u even though we are not using it in the prover in order to make sure that the prover and verifier make exactly the same number of calls to transcript_hasher.get_hash(). addresses PR #61 comment #61 (comment)
… input parameter to the constructor. only the object has access to the buffer now. addresses PR #61 comment #61 (comment)
… plonk_example class; addresses #61 (comment) .
…ion parameter to the prover and verifier classes. moved the current transcript_hasher class from files srs.* to its own files under tests, the reason being that its implementation is specific to the bls12-381 curve. set the prover and verifier to be instantiated with this bls12-381-specific implementation of transcript_hasher. this commit addresses steps 2. and 4. from comment #61 (comment) of PR#61.
…hat describes the interface of a common transcript hasher. addresses step 1. from comment #61 (comment) of PR#61.
…cript hasher with a while loop directly finding the correct length; addresses #61 (comment) .
…tor_transcript_hasher::get_hash(). addresses #61 (comment) .
…bls12_381_test_vector_transcript_hasher initialized in the constructor. addresses #61 (comment) .
…length and challenge arrays are of same length in transcript hasher constructor; minor edits. addresses lates comments in PR #61 .
Addresses Issue #56