-
Notifications
You must be signed in to change notification settings - Fork 659
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
[Feature] Introduce the signature
type and signature::verify
.
#2519
Conversation
Codecov Report
@@ Coverage Diff @@
## testnet3 #2519 +/- ##
============================================
- Coverage 80.10% 80.10% -0.01%
============================================
Files 158 159 +1
Lines 5309 5322 +13
Branches 5309 5322 +13
============================================
+ Hits 4253 4263 +10
- Misses 1056 1059 +3
... and 17 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Code changes look clean.
Will approve once the snarkVM deps are updated.
This PR introduces the
signature
type andsignature::verify
.signature::verify
takes asignature
,address
, and a value as operands and returns whether or not the signature is valid.A sample usage is shown below.