MCPcopy Create free account
hub / github.com/ElementsProject/elements / ECC_InitSanityCheck

Function ECC_InitSanityCheck

src/key.cpp:398–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398bool ECC_InitSanityCheck() {
399 CKey key;
400 key.MakeNewKey(true);
401 CPubKey pubkey = key.GetPubKey();
402 return key.VerifyPubKey(pubkey);
403}
404
405void ECC_Start() {
406 assert(secp256k1_context_sign == nullptr);

Callers 2

SanityChecksFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

MakeNewKeyMethod · 0.80
VerifyPubKeyMethod · 0.80
GetPubKeyMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68