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

Method Decode

src/entities/key.cpp:326–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void CExtKey::Decode(const uint8_t code[74]) {
327 nDepth = code[0];
328 memcpy(vchFingerprint, code + 1, 4);
329 nChild = (code[5] << 24) | (code[6] << 16) | (code[7] << 8) | code[8];
330 memcpy(vchChainCode, code + 9, 32);
331 key.Set(code + 42, code + 74, true);
332}
333
334void CExtPubKey::Encode(uint8_t code[74]) const {
335 code[0] = nDepth;

Callers 1

GetKeyMethod · 0.80

Calls 2

memcpyFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected