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

Method Load

src/key.cpp:313–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313bool CKey::Load(const CPrivKey &seckey, const CPubKey &vchPubKey, bool fSkipCheck=false) {
314 if (!ec_seckey_import_der(secp256k1_context_sign, (unsigned char*)begin(), seckey.data(), seckey.size()))
315 return false;
316 fCompressed = vchPubKey.IsCompressed();
317 fValid = true;
318
319 if (fSkipCheck)
320 return true;
321
322 return VerifyPubKey(vchPubKey);
323}
324
325bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const ChainCode& cc, std::vector<unsigned char>* tweak) const {
326 assert(IsValid());

Callers

nothing calls this directly

Calls 5

ec_seckey_import_derFunction · 0.85
beginFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45
IsCompressedMethod · 0.45

Tested by

no test coverage detected