Skip to content
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

Draft
wants to merge 73 commits into
base: add-bip340-schnorr
Choose a base branch
from

Conversation

Tibo-lg
Copy link
Collaborator

@Tibo-lg Tibo-lg commented Aug 28, 2020

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.

&self,
msg: &Message,
sk: &SecretKey,
nonce: &SchnorrNonce,
Copy link

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...

Copy link
Collaborator Author

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.

@Tibo-lg Tibo-lg force-pushed the ecdsa-adaptor branch 2 times, most recently from 31de6a1 to 8b749bc Compare September 1, 2020 06:30
@Tibo-lg Tibo-lg force-pushed the ecdsa-adaptor branch 2 times, most recently from cc09fb7 to 7200202 Compare September 15, 2020 06:40
@Tibo-lg Tibo-lg changed the base branch from pr-216 to add-bip340-schnorr September 25, 2020 03:46
@Tibo-lg Tibo-lg force-pushed the add-bip340-schnorr branch 8 times, most recently from d9a83e3 to 49923a9 Compare October 5, 2020 01:44
@Tibo-lg Tibo-lg force-pushed the add-bip340-schnorr branch from 49923a9 to d75259f Compare October 12, 2020 12:42
@Tibo-lg Tibo-lg force-pushed the add-bip340-schnorr branch 10 times, most recently from 7e8eb2d to 4f6699c Compare October 22, 2020 05:55
@Tibo-lg Tibo-lg force-pushed the ecdsa-adaptor branch 2 times, most recently from 987c5dd to 0911eda Compare October 26, 2020 00:33
@Tibo-lg Tibo-lg force-pushed the add-bip340-schnorr branch from 4f6699c to 8bc9587 Compare October 26, 2020 08:20
junderw and others added 28 commits December 28, 2020 15:06
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`
use core instead of std for wasm sanity checks
Use CARGO_CFG_TARGET_ARCH instead TARGET in build.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.