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

Method Neuter

src/key.cpp:380–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380CExtPubKey CExtKey::Neuter() const {
381 CExtPubKey ret;
382 ret.nDepth = nDepth;
383 memcpy(ret.vchFingerprint, vchFingerprint, 4);
384 ret.nChild = nChild;
385 ret.pubkey = key.GetPubKey();
386 ret.chaincode = chaincode;
387 return ret;
388}
389
390void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const {
391 code[0] = nDepth;

Callers 8

MigrateToDescriptorMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
GetPubKeyMethod · 0.80
ToNormalizedStringMethod · 0.80
ParsePubkeyInnerFunction · 0.80
RunTestFunction · 0.80
InitMethod · 0.80

Calls 1

GetPubKeyMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
RunTestFunction · 0.64
InitMethod · 0.64