-
Notifications
You must be signed in to change notification settings - Fork 20
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
runtime-sdk: Add support for secp256r1 #1436
Conversation
fb3cde4
to
507a7fe
Compare
Codecov Report
@@ Coverage Diff @@
## main #1436 +/- ##
========================================
Coverage 57.54% 57.55%
========================================
Files 134 135 +1
Lines 9636 9741 +105
========================================
+ Hits 5545 5606 +61
- Misses 4049 4093 +44
Partials 42 42
|
507a7fe
to
8c9763d
Compare
for byte in &[context, message] { | ||
<Sha512_256 as Digest>::update(&mut digest, byte); | ||
} | ||
let sig = ecdsa::Signature::from_der(signature.0.as_ref()) |
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.
let sig = ecdsa::Signature::from_der(signature.0.as_ref()) | |
self.verify_digest(digest, signature) |
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.
Could remove some duplicate code, but not needed, to be inline with k1.
8c9763d
to
6fb425c
Compare
Fixes #1417