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() {
432432 return key.VerifyPubKey (pubkey);
433433}
434434
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 () {
436437 assert (secp256k1_context_sign == nullptr );
437438
438439 secp256k1_context *ctx = secp256k1_context_create (SECP256K1_CONTEXT_NONE);
@@ -449,7 +450,8 @@ void ECC_Start() {
449450 secp256k1_context_sign = ctx;
450451}
451452
452- void ECC_Stop () {
453+ /* * Deinitialize the elliptic curve support. No-op if ECC_Start wasn't called first. */
454+ static void ECC_Stop () {
453455 secp256k1_context *ctx = secp256k1_context_sign;
454456 secp256k1_context_sign = nullptr ;
455457
Original file line number Diff line number Diff line change @@ -236,12 +236,6 @@ struct CExtKey {
236236 void SetSeed (Span<const std::byte> seed);
237237};
238238
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-
245239/* * Check that required EC support is available at runtime. */
246240bool ECC_InitSanityCheck ();
247241
You can’t perform that action at this time.
0 commit comments