MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Load

Method Load

src/key.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool CKey::Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck=false) {
214 if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), &privkey[0], privkey.size()))
215 return false;
216 fCompressed = vchPubKey.IsCompressed();
217 fValid = true;
218
219 if (fSkipCheck)
220 return true;
221
222 return VerifyPubKey(vchPubKey);
223}
224
225bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const ChainCode& cc) const {
226 assert(IsValid());

Callers 1

ReadKeyValueFunction · 0.80

Calls 3

ec_privkey_import_derFunction · 0.70
sizeMethod · 0.45
IsCompressedMethod · 0.45

Tested by

no test coverage detected