-
Notifications
You must be signed in to change notification settings - Fork 39
test: blind_bbs_plus_sig_and_message_equality #29
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
Conversation
Signed-off-by: Harold Carr <harold.carr@oracle.com>
| // This test was motivated by the fact that the existing blinding tests | ||
| // proof_system/tests/bbs_plus_and_accumulators.rs | ||
| // requesting_partially_blind_bbs_plus_sig | ||
| // requesting_partially_blind_bbs_plus_sig |
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 is duplicate of the above line.
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.
Thanks, removed.
| // requesting_partially_blind_bbs_plus_sig | ||
| // requesting_partially_blind_bbs_plus_sig | ||
| // requesting_partially_blind_bbs_sig | ||
| // do not use the unblinded/blind signature in proofs. Hence, this test. |
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 didn't use the "unblinded" sig in proof (of knowledge of sig) as other tests do that and an "unblinded" sig is same as a regular sig
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.
The requesting_partially_blind_bbs_sig test doesn't unblind the blinded signature.
The requesting_partially_blind_bbs_plus_sig test does, and then verifies the unblinded signature, but does not create any proofs with it. One might argue that verifying the unblinded signature is sufficient to ensure it's "just the same as a regular sig", and therefore can be used to create all the same proofs. However, I think that it's worthwhile explicitly testing that we can use the unblinded signature to create and verify at least one proof.
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.
requesting_partially_blind_bbs_sig doesn't have the blinding term (s) and thus no unblind function for BBS sigs. The user might separately add blinding to achieve the same effect as BBS+
| // do not use the unblinded/blind signature in proofs. Hence, this test. | ||
|
|
||
| blind_bbs_plus_sig_and_message_equality_aux(true).unwrap(); | ||
| if blind_bbs_plus_sig_and_message_equality_aux(false).is_ok() { |
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.
Any reason you wouldn't want assert!(blind_bbs_plus_sig_and_message_equality_aux(false).is_err()) to replace this if block.
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.
No reason 😄. Fixed, thanks.
|
Thanks for the PR @mark-moir . |
Signed-off-by: Mark Moir <mark.moir@oracle.com>
Signed-off-by: Mark Moir <mark.moir@oracle.com>
|
Thanks for the updates. |
This PR adds several tests. Each test:
We test that
This test was motivated by the fact that the existing blinding tests in
proof_system/tests/bbs_plus_and_accumulators.rs:requesting_partially_blind_bbs_plus_sigrequesting_partially_blind_bbs_plus_sigrequesting_partially_blind_bbs_sigdo not use unblinded/blind signatures in proofs.
This PR also adds a
NOTICE.mdfile saying that Oracle contributed. We are required to include such notice for our approval to contribute to the repo. By putting a notice in one place, we avoid putting it in individual files that we contribute to, which in future may include existing files. Hope this is OK.