-
Notifications
You must be signed in to change notification settings - Fork 237
feat(primitives): add Signature::as_rsy method
#1041
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
base: main
Are you sure you want to change the base?
Conversation
- to obtain normalized signature bytes, with y_parity as it is
mablr
left a comment
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’m not sure if this is the most appropriate name for this Signature helper.
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 eip-2098, so let's find an appropriate name for this and link to the eip?
|
There is core/crates/primitives/src/signature/sig.rs Line 194 in 52a263d
Here as far as I understand we do uncompacted, so the following may be suitable:
|
|
hmm, actually, this isn't eip-2098, becasue we have that already and that is different |
I agree (I edited my previous comment just before yours, sorry for the possible confusion) |
|
erhhh, unsure then. maybe |
as_raw_bytes method to SignatureSignature::as_rsy method
mattsse
left a comment
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.
lgtm, pending @onbjerg
Motivation
Close #1040
Solution
add
Signature::as_rsymethod to obtain raw signature bytes, with y_parity as it isPR Checklist