-
Notifications
You must be signed in to change notification settings - Fork 59
expose recover() function #68
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
Comments
I remember back when tiny-secp256k1 first started, The reality is: the message signing from Bitcoin Core early versions was never standardized. Many wallets have incompatible methods that are slightly similar, especially in dealing with the various address types. (back then, there was only one address type and the only variance was compressed or not.) To be honest... bitcoin-message should be archived. At this point any "updates" to it would be meaningless back-end optimizations and arguing minutiae about why we should adopt format X over format Y or how we could make it backwards compatible with format Z (where X Y Z are all different wallet apps that put their own spin on message signing) Adding recovery just to fill a need for bitcoin-message is not a good reason enough imo. |
It could be useful for BOLT11 and various Lightning usecases though. |
I am trying to have a look at this, but I get a compilation error when running
I assume the |
you need to enable the recovery feature in the Cargo.toml file entry for secp256k1-sys |
should give you a new recovery module to work with. |
No luck, exactly the same error. I can't see what I'm missing.
rust-secp256k1/secp256k1-sys/Cargo.tom has
According to dependency-features doc:
|
you need to import from the recovery submodule, not the root crate. |
I am talking about tiny-secp256k1's Cargo.toml btw |
Thanks, that was the issue: Noob mistake. |
PR merged. #69 |
bitcoin-message
lib is usingsecp256k1.recover()
tiny-secp256k1
Related discussion: bitcoinjs/ecpair#3 (comment)
The text was updated successfully, but these errors were encountered: