-
Notifications
You must be signed in to change notification settings - Fork 459
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
Questions about ECDSA #201
Comments
See the discussion here: #65 (comment) |
ok so if understand correctly, the additional bit in recoverable signatures is just the recid appended to the whole thing - but then something else is wrong on my side too, since it just doesn't add up eventually. when i use uECC with the same
the contract looks like this and validates the expected signature perfectly (returns wallet address
any idea of what i might be doing wrong or how to get me on the right track? I've tried 4 different libraries by now and I'm close to giving up :( |
I'd like to sign a message and create a recoverable signature which can be used with EIP-191 and Ethereum's erecover / OpenZeppelin's ECDSA smart contracts to verify the signature's signer.
Is it somehow possible to use uECC_sign() to achieve this, or would this require a complete re-implementation? can the 65th bit be extracted along the process and inserted into the created signature, or are recoverable signatures following a different process when signing altogether?
as a reference, i've tried using the secpk256k1 lib too since it supports recoverable signatures ootb, but the result is still invalid when testing with OZ's ECDSA contract. In contrast, when signing the hash directly in my wallet (e.g. MEW), i get a valid signature that resolves to the signer's address.
does anyone have any experience with this? any help or clues appreciated greatly!
The text was updated successfully, but these errors were encountered: