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

Function BIP32Hash

src/hash.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void BIP32Hash(const ChainCode &chainCode, unsigned int nChild, unsigned char header, const unsigned char data[32], unsigned char output[64])
76{
77 unsigned char num[4];
78 WriteBE32(num, nChild);
79 CHMAC_SHA512(chainCode.begin(), chainCode.size()).Write(&header, 1).Write(data, 32).Write(num, 4).Finalize(output);
80}
81
82uint256 SHA256Uint256(const uint256& input)
83{

Callers 2

DeriveMethod · 0.85
DeriveMethod · 0.85

Calls 6

CHMAC_SHA512Class · 0.85
WriteBE32Function · 0.50
FinalizeMethod · 0.45
WriteMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected