-
Notifications
You must be signed in to change notification settings - Fork 5
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: pass options to secp256k1 signBuffer #71
Conversation
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.
utACK
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.
utACK - but I would prefer we restrict ecOptions
to canonical
unless we need 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.
utACK
Anything else here? |
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.
utACK
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.
utACK
@feri42 merged, but the multi-seed keychain is still being integrated all over the place. Do you want this also backported to the single-seed keychain for now? |
@mvayngrib , yes definitely. Where is the single-seed keychain located? I need to import this into the platforms to finish the whole POC. |
in a commit from ages long bygone |
@feri42 it's keychain 5.x, i'll see if i can create a branch and release from there |
Mobile has keychain 4.x. Seeing this is 5.x, will it be a reasonable effort to bump keychain there? |
shouldn't be, @sparten11740 can u grab bumping keychain on mobile? |
backported + released to |
For signing ETH transactions we need to pass the
canonical
option toec.sign
. Also, using the DER format of the signature can be quite challenging as there is no simple function to pick it apart. With this change we can get the raw signature. It would be better ifsignBuffer
didn't return the DER encoded value at all.Fixtures for the new test were created using the ethereumjs library.