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

Method GetExtKey

src/script/descriptor.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 DeriveType m_derive;
95
96 bool GetExtKey(const SigningProvider& arg, CExtKey& ret) const
97 {
98 CKey key;
99 if (!arg.GetKey(m_extkey.pubkey.GetID(), key)) return false;
100 ret.nDepth = m_extkey.nDepth;
101 std::copy(m_extkey.vchFingerprint, m_extkey.vchFingerprint + 4, ret.vchFingerprint);
102 ret.nChild = m_extkey.nChild;
103 ret.chaincode = m_extkey.chaincode;
104 ret.key = key;
105 return true;
106 }
107
108 bool IsHardened() const
109 {

Callers

nothing calls this directly

Calls 2

GetIDMethod · 0.80
GetKeyMethod · 0.45

Tested by

no test coverage detected