MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetExtKey

Method GetExtKey

src/script/descriptor.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 bool m_apostrophe;
406
407 bool GetExtKey(const SigningProvider& arg, CExtKey& ret) const
408 {
409 CKey key;
410 if (!arg.GetKey(m_root_extkey.pubkey.GetID(), key)) return false;
411 ret.nDepth = m_root_extkey.nDepth;
412 std::copy(m_root_extkey.vchFingerprint, m_root_extkey.vchFingerprint + sizeof(ret.vchFingerprint), ret.vchFingerprint);
413 ret.nChild = m_root_extkey.nChild;
414 ret.chaincode = m_root_extkey.chaincode;
415 ret.key = key;
416 return true;
417 }
418
419 // Derives the last xprv
420 bool GetDerivedExtKey(const SigningProvider& arg, CExtKey& xprv, CExtKey& last_hardened) const

Callers

nothing calls this directly

Calls 2

GetKeyMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected