mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Add secp256k1_selftest call
This commit is contained in:
parent
3bfca788b0
commit
2022917223
1 changed files with 12 additions and 0 deletions
|
@ -16,6 +16,18 @@
|
|||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
namespace {
|
||||
|
||||
struct Secp256k1SelfTester
|
||||
{
|
||||
Secp256k1SelfTester() {
|
||||
/* Run libsecp256k1 self-test before using the secp256k1_context_static. */
|
||||
secp256k1_selftest();
|
||||
}
|
||||
} SECP256K1_SELFTESTER;
|
||||
|
||||
} // namespace
|
||||
|
||||
/** This function is taken from the libsecp256k1 distribution and implements
|
||||
* DER parsing for ECDSA signatures, while supporting an arbitrary subset of
|
||||
* format violations.
|
||||
|
|
Loading…
Add table
Reference in a new issue