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

Method GetExtKey

src/script/descriptor.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 DeriveType m_derive;
298
299 bool GetExtKey(const SigningProvider& arg, CExtKey& ret) const
300 {
301 CKey key;
302 if (!arg.GetKey(m_root_extkey.pubkey.GetID(), key)) return false;
303 ret.nDepth = m_root_extkey.nDepth;
304 std::copy(m_root_extkey.vchFingerprint, m_root_extkey.vchFingerprint + sizeof(ret.vchFingerprint), ret.vchFingerprint);
305 ret.nChild = m_root_extkey.nChild;
306 ret.chaincode = m_root_extkey.chaincode;
307 ret.key = key;
308 return true;
309 }
310
311 // Derives the last xprv
312 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