aboutsummaryrefslogtreecommitdiff
path: root/src/pubkey.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-02-08 00:15:51 -0800
committerPieter Wuille <pieter@wuille.net>2021-06-12 12:25:28 -0700
commita91d532338ecb66ec5bed164929d878dd55d63a4 (patch)
tree6a4d736bcf31222e9fcb7d46545bc2d292b29d90 /src/pubkey.h
parente77a2839b54fa2039bba468e8c09dbbbf19b150a (diff)
downloadbitcoin-a91d532338ecb66ec5bed164929d878dd55d63a4.tar.xz
Add CKey::SignSchnorr function for BIP 340/341 signing
Diffstat (limited to 'src/pubkey.h')
-rw-r--r--src/pubkey.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pubkey.h b/src/pubkey.h
index 194705c38f..eec34a89c2 100644
--- a/src/pubkey.h
+++ b/src/pubkey.h
@@ -316,4 +316,10 @@ public:
~ECCVerifyHandle();
};
+typedef struct secp256k1_context_struct secp256k1_context;
+
+/** Access to the internal secp256k1 context used for verification. Only intended to be used
+ * by key.cpp. */
+const secp256k1_context* GetVerifyContext();
+
#endif // BITCOIN_PUBKEY_H