mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
Adapt to libsecp256k1 API changes
* Use SECP256K1_CONTEXT_NONE when creating signing context, as SECP256K1_CONTEXT_SIGN is deprecated and unnecessary. * Use secp256k1_static_context where applicable.
This commit is contained in:
17
src/pubkey.h
17
src/pubkey.h
@@ -330,21 +330,4 @@ struct CExtPubKey {
|
||||
[[nodiscard]] bool Derive(CExtPubKey& out, unsigned int nChild) const;
|
||||
};
|
||||
|
||||
/** Users of this module must hold an ECCVerifyHandle. The constructor and
|
||||
* destructor of these are not allowed to run in parallel, though. */
|
||||
class ECCVerifyHandle
|
||||
{
|
||||
static int refcount;
|
||||
|
||||
public:
|
||||
ECCVerifyHandle();
|
||||
~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
|
||||
|
||||
Reference in New Issue
Block a user