Skip to content

Commit 96378fe

Browse files
committed
Refactor: Remove ECC_Start and ECC_Stop from key header
They are unused outside of the key module now.
1 parent 41eba5b commit 96378fe

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/key.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/key.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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. */
246240
bool ECC_InitSanityCheck();
247241

0 commit comments

Comments
 (0)