-
Notifications
You must be signed in to change notification settings - Fork 115
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
feat: Add signature_verification_result
to schnorr stdlib
#173
Conversation
4e06695
to
a98abe2
Compare
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 can see how it would be useful to have a verification method that does not assert but instead returns a boolean. It gives more flexibility to developers and makes it easier to evaluate branching paths where one wishes to conditionally verify a signature.
We have a lot of tests and circuit code that relies on the signature verification algorithm to produce unsatisfiable constraints if the signature is invalid.
I think the fastest path forward is to create a new independent method that returns a bool_t, which does not interfere with existing tests.
a98abe2
to
cd14941
Compare
Rebased and resolved conflicts with |
signature_verification_result
to schnorr stdlib
@zac-williamson looks good? Merging is blocked until you approve 😇 |
Zac is with me now and he say it's ok.
…without changed. So we need verify_signature to return a boolean indicating whether the signature was valid or not. It should in fact return a bool_ct.
ffa0396
to
6f3830f
Compare
^ rebase |
…tocol/barretenberg#173) * Add more flexible Schnorr verification methods --------- Co-authored-by: kevaundray <[email protected]> Co-authored-by: codygunton <[email protected]>
…tocol/barretenberg#173) * Add more flexible Schnorr verification methods --------- Co-authored-by: kevaundray <[email protected]> Co-authored-by: codygunton <[email protected]>
Description
Noir needs
verify_signature
in the schnorr stdlib to return abool_t
indicating whether the signature was valid or not.Currently a draft because I tried to update @kevaundray's code to add a constraint but I have no idea if I did it correctly.
Checklist:
/markdown/specs
have been updated.@brief
describing the intended functionality.