File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,8 @@ bool ECC_InitSanityCheck() {
432
432
return key.VerifyPubKey (pubkey);
433
433
}
434
434
435
- void ECC_Start () {
435
+ /* * Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */
436
+ static void ECC_Start () {
436
437
assert (secp256k1_context_sign == nullptr );
437
438
438
439
secp256k1_context *ctx = secp256k1_context_create (SECP256K1_CONTEXT_NONE);
@@ -449,7 +450,8 @@ void ECC_Start() {
449
450
secp256k1_context_sign = ctx;
450
451
}
451
452
452
- void ECC_Stop () {
453
+ /* * Deinitialize the elliptic curve support. No-op if ECC_Start wasn't called first. */
454
+ static void ECC_Stop () {
453
455
secp256k1_context *ctx = secp256k1_context_sign;
454
456
secp256k1_context_sign = nullptr ;
455
457
Original file line number Diff line number Diff line change @@ -236,12 +236,6 @@ struct CExtKey {
236
236
void SetSeed (Span<const std::byte> seed);
237
237
};
238
238
239
- /* * Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */
240
- void ECC_Start ();
241
-
242
- /* * Deinitialize the elliptic curve support. No-op if ECC_Start wasn't called first. */
243
- void ECC_Stop ();
244
-
245
239
/* * Check that required EC support is available at runtime. */
246
240
bool ECC_InitSanityCheck ();
247
241
You can’t perform that action at this time.
0 commit comments