-
Notifications
You must be signed in to change notification settings - Fork 112
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
Arrabbiata: coining alpha challenge + implement generic coin_challenge #3027
base: arrabbiata/squeeze-challenge-method
Are you sure you want to change the base?
Arrabbiata: coining alpha challenge + implement generic coin_challenge #3027
Conversation
f38cebe
to
c29c506
Compare
c29c506
to
d19d3c2
Compare
}); | ||
let verifier_answer = E1::squeeze_challenge(&mut sponge).to_biguint().into(); | ||
self.challenges[chal] = verifier_answer; | ||
sponge.sponge.poseidon_block_cipher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to abstract it later.
}); | ||
let verifier_answer = E2::squeeze_challenge(&mut sponge).to_biguint().into(); | ||
self.challenges[chal] = verifier_answer; | ||
sponge.sponge.poseidon_block_cipher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to abstract it later.
}); | ||
let verifier_answer = E1::squeeze_challenge(&mut sponge).to_biguint().into(); | ||
self.challenges[chal] = verifier_answer; | ||
sponge.sponge.poseidon_block_cipher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to add a pass of block_cipher there ?
}); | ||
let verifier_answer = E2::squeeze_challenge(&mut sponge).to_biguint().into(); | ||
self.challenges[chal] = verifier_answer; | ||
sponge.sponge.poseidon_block_cipher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as line 1272
let state: Vec<BigInt> = sponge | ||
.sponge | ||
.state | ||
.iter() | ||
.map(|x| x.to_biguint().into()) | ||
.collect(); | ||
self.prover_sponge_state = state.try_into().unwrap(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be factorised with the other half of the commit
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## arrabbiata/squeeze-challenge-method #3027 +/- ##
======================================================================
Coverage ? 76.86%
======================================================================
Files ? 263
Lines ? 62244
Branches ? 0
======================================================================
Hits ? 47846
Misses ? 14398
Partials ? 0 ☔ View full report in Codecov by Sentry. |
No description provided.