diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-12-12 23:40:36 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2022-12-12 23:40:36 -0500 |
commit | 3d8a6ae28326ed10b6ca1c2807ceb400575f2ba7 (patch) | |
tree | 07232a7ba19ca0b911d7c3ce4187ee51e8515dec /src/secp256k1/examples/schnorr.c | |
parent | 6061eb6564105ad54703a7cf3282590d0e1a7f28 (diff) | |
parent | 9d47e7b71b2805430e8c7b43816efd225a6ccd8c (diff) | |
download | bitcoin-3d8a6ae28326ed10b6ca1c2807ceb400575f2ba7.tar.xz |
Update secp256k1 subtree to upstream libsecp256k1 version 0.2.0
Diffstat (limited to 'src/secp256k1/examples/schnorr.c')
-rw-r--r-- | src/secp256k1/examples/schnorr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/secp256k1/examples/schnorr.c b/src/secp256k1/examples/schnorr.c index 82eb07d5d7..207c45c422 100644 --- a/src/secp256k1/examples/schnorr.c +++ b/src/secp256k1/examples/schnorr.c @@ -30,12 +30,8 @@ int main(void) { int return_val; secp256k1_xonly_pubkey pubkey; secp256k1_keypair keypair; - /* The specification in secp256k1_extrakeys.h states that `secp256k1_keypair_create` - * needs a context object initialized for signing. And in secp256k1_schnorrsig.h - * they state that `secp256k1_schnorrsig_verify` needs a context initialized for - * verification, which is why we create a context for both signing and verification - * with the SECP256K1_CONTEXT_SIGN and SECP256K1_CONTEXT_VERIFY flags. */ - secp256k1_context* ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); + /* Before we can call actual API functions, we need to create a "context". */ + secp256k1_context* ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE); if (!fill_random(randomize, sizeof(randomize))) { printf("Failed to generate randomness\n"); return 1; |