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

Function MerkleHash_Sha256Midstate

src/primitives/txwitness.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static inline
46void MerkleHash_Sha256Midstate(uint256& parent, const uint256& left, const uint256& right) {
47 CSHA256().Write(left.begin(), 32).Write(right.begin(), 32).Midstate(parent.begin(), NULL, NULL);
48}
49
50uint256 ComputeFastMerkleRoot(const std::vector<uint256>& hashes) {
51 uint256 result_hash = uint256();

Callers 1

ComputeFastMerkleRootFunction · 0.85

Calls 4

CSHA256Class · 0.85
MidstateMethod · 0.80
WriteMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected