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

Method Decode

src/key.cpp:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void CExtKey::Decode(const unsigned char code[BIP32_EXTKEY_SIZE]) {
329 nDepth = code[0];
330 memcpy(vchFingerprint, code+1, 4);
331 nChild = (code[5] << 24) | (code[6] << 16) | (code[7] << 8) | code[8];
332 memcpy(chaincode.begin(), code+9, 32);
333 key.Set(code+42, code+BIP32_EXTKEY_SIZE, true);
334}
335
336bool ECC_InitSanityCheck() {
337 CKey key;

Callers 2

DecodeExtPubKeyFunction · 0.45
DecodeExtKeyFunction · 0.45

Calls 3

memcpyFunction · 0.85
beginMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected