Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
398
bool ECC_InitSanityCheck() {
399
CKey key;
400
key.MakeNewKey(true);
401
CPubKey pubkey = key.GetPubKey();
402
return key.VerifyPubKey(pubkey);
403
}
404
405
void ECC_Start() {
406
assert(secp256k1_context_sign == nullptr);
Callers
2
SanityChecks
Function · 0.85
BOOST_AUTO_TEST_CASE
Function · 0.85
Calls
3
MakeNewKey
Method · 0.80
VerifyPubKey
Method · 0.80
GetPubKey
Method · 0.45
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.68