-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Ecdsa adaptor and schnorr signature from temp-everything branch #1
base: add-bip340-schnorr
Are you sure you want to change the base?
Conversation
src/schnorrsig.rs
Outdated
&self, | ||
msg: &Message, | ||
sk: &SecretKey, | ||
nonce: &SchnorrNonce, |
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.
Actually I think this is meant to be a private key, k
, whereas the type SchnorrNonce
represents public keys R = k*G
. The name is kind of confusing because both k
and R
values are sometimes called the nonce...
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.
Good catch thanks! I indeed got confused because it was called nonce, changed to private key.
31de6a1
to
8b749bc
Compare
cc09fb7
to
7200202
Compare
7200202
to
e2c31f7
Compare
6c31918
to
b9821a0
Compare
d9a83e3
to
49923a9
Compare
49923a9
to
d75259f
Compare
7e8eb2d
to
4f6699c
Compare
987c5dd
to
0911eda
Compare
4f6699c
to
8bc9587
Compare
…symb2 redo fuzz target
Fix link_name for secp256k1_ec_seckey_negate
There is little reason to pull in the `rand` dep just for the `Rng` trait for users who want to randomize contexts. We should expose a randomize function that just takes 32 bytes.
Add ability to randomize context without the `rand` feature.
update libsecp, remove endomorphism feature flag and release 0.20.0
…zz-feature Rename `rust_secp_fuzz` config flag to `fuzzing`
Signed-off-by: Gregory Hill <[email protected]>
use core instead of std for wasm sanity checks
More standard derives for Error
Use CARGO_CFG_TARGET_ARCH instead TARGET in build.rs
This PR adds binding for ecdsa adaptor signature and schnorr signature from this secp256k1 branch.
First commit is mainly auto-generated code (plus some changes to the script that do the autogeneration).
Second commit are changes to secp256k1-sys
Third commit is the higher level layer adding the types and functions.