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

Function ComputeMerkleBranch

src/test/merkle_tests.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static std::vector<uint256> ComputeMerkleBranch(const std::vector<uint256>& leaves, uint32_t position) {
114 std::vector<uint256> ret;
115 MerkleComputation(leaves, nullptr, nullptr, position, &ret);
116 return ret;
117}
118
119static std::vector<uint256> BlockMerkleBranch(const CBlock& block, uint32_t position)
120{

Callers 1

BlockMerkleBranchFunction · 0.85

Calls 1

MerkleComputationFunction · 0.85

Tested by

no test coverage detected