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

Method Neuter

src/key.cpp:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369CExtPubKey CExtKey::Neuter() const {
370 CExtPubKey ret;
371 ret.nDepth = nDepth;
372 memcpy(ret.vchFingerprint, vchFingerprint, 4);
373 ret.nChild = nChild;
374 ret.pubkey = key.GetPubKey();
375 ret.chaincode = chaincode;
376 return ret;
377}
378
379void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const {
380 code[0] = nDepth;

Callers 5

GetPubKeyMethod · 0.80
ToNormalizedStringMethod · 0.80
ParsePubkeyInnerFunction · 0.80
RunTestFunction · 0.80

Calls 1

GetPubKeyMethod · 0.45

Tested by 1

RunTestFunction · 0.64