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

Method Load

src/key.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256bool CKey::Load(const CPrivKey &privkey, const CPubKey &vchPubKey, bool fSkipCheck=false) {
257 if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), privkey.data(), privkey.size()))
258 return false;
259 fCompressed = vchPubKey.IsCompressed();
260 fValid = true;
261
262 if (fSkipCheck)
263 return true;
264
265 return VerifyPubKey(vchPubKey);
266}
267
268bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const ChainCode& cc) const {
269 assert(IsValid());

Callers 1

walletdb.cppFile · 0.80

Calls 4

ec_privkey_import_derFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45
IsCompressedMethod · 0.45

Tested by

no test coverage detected