Skip to content

Commit 7dc7938

Browse files
committed
Refactor: Remove ECC_Start and ECC_Stop from key header
They are unused outside of the key module now.
1 parent 2a3f08c commit 7dc7938

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/key.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ bool ECC_InitSanityCheck() {
432432
return key.VerifyPubKey(pubkey);
433433
}
434434

435-
void ECC_Start() {
435+
static void ECC_Start() {
436436
assert(secp256k1_context_sign == nullptr);
437437

438438
secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE);
@@ -449,7 +449,7 @@ void ECC_Start() {
449449
secp256k1_context_sign = ctx;
450450
}
451451

452-
void ECC_Stop() {
452+
static void ECC_Stop() {
453453
secp256k1_context *ctx = secp256k1_context_sign;
454454
secp256k1_context_sign = nullptr;
455455

src/key.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,6 @@ struct CExtKey {
230230
void SetSeed(Span<const std::byte> seed);
231231
};
232232

233-
/** Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */
234-
void ECC_Start();
235-
236-
/** Deinitialize the elliptic curve support. No-op if ECC_Start wasn't called first. */
237-
void ECC_Stop();
238-
239233
/** Check that required EC support is available at runtime. */
240234
bool ECC_InitSanityCheck();
241235

0 commit comments

Comments
 (0)