-
Notifications
You must be signed in to change notification settings - Fork 31
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
Coconut Proof allows empty blinding messages #21
Coconut Proof allows empty blinding messages #21
Conversation
let pok = MessagesPoKGenerator::init(&mut rng, &[], ¶ms, &h) | ||
.unwrap(); | ||
|
||
let mut chal_bytes_prover = vec![]; |
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.
As you are using the same variables for prover's and verifier's challenge, they should not have suffix _prover
, chal_bytes
is good.
coconut/src/proof/mod.rs
Outdated
@@ -178,7 +178,7 @@ impl<'pair, Pair, F: PrimeField> UnpackedBlindedMessages<'pair, Pair, F> { | |||
let (paired, (msgs, blindings)): (Vec<_>, _) = | |||
process_results(paired, |iter| iter.unzip())?; | |||
if paired.is_empty() { |
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.
You can remove this if
block as the last else
block will return the desired result.
); | ||
let pok = SignaturePoKGenerator::init(&mut rng, &[], &sig, &pk, ¶ms).unwrap(); | ||
|
||
let mut chal_bytes_prover = vec![]; |
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.
Similar comment as above on naming.
@lovesh Thank you so much for your quick feedbacks! I modified for all of your comments! |
@0xvon I have fixed the failing tests in this commit but I am not able to edit this PR even when this PR is marked appropriately. Can you please get these changes in your PR? Thanks |
I pushed! |
Thank you @0xvon for the contribution. |
Issue
#20
What I do