MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / BIP32Hash

Function BIP32Hash

src/hash.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

DeriveMethod · 0.85
DeriveMethod · 0.85

Calls 6

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

Tested by

no test coverage detected