mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02: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:
@@ -14,11 +14,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
void initialize_signature_checker()
|
||||
{
|
||||
static const auto verify_handle = std::make_unique<ECCVerifyHandle>();
|
||||
}
|
||||
|
||||
namespace {
|
||||
class FuzzedSignatureChecker : public BaseSignatureChecker
|
||||
{
|
||||
@@ -53,7 +48,7 @@ public:
|
||||
};
|
||||
} // namespace
|
||||
|
||||
FUZZ_TARGET_INIT(signature_checker, initialize_signature_checker)
|
||||
FUZZ_TARGET(signature_checker)
|
||||
{
|
||||
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||
const unsigned int flags = fuzzed_data_provider.ConsumeIntegral<unsigned int>();
|
||||
|
||||
Reference in New Issue
Block a user