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

Method Neuter

src/key.cpp:307–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307CExtPubKey CExtKey::Neuter() const {
308 CExtPubKey ret;
309 ret.nDepth = nDepth;
310 memcpy(&ret.vchFingerprint[0], &vchFingerprint[0], 4);
311 ret.nChild = nChild;
312 ret.pubkey = key.GetPubKey();
313 ret.chaincode = chaincode;
314 return ret;
315}
316
317void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const {
318 code[0] = nDepth;

Callers 3

GetPubKeyMethod · 0.80
ParsePubkeyFunction · 0.80
RunTestFunction · 0.80

Calls 2

memcpyFunction · 0.85
GetPubKeyMethod · 0.45

Tested by 1

RunTestFunction · 0.64