![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
#include <consensus/merkle.h>#include <crypto/sha256.h>#include <hash.h>#include <primitives/block.h>#include <primitives/transaction.h>#include <util/check.h>#include <cstddef>#include <memory>#include <utility>Go to the source code of this file.
Functions | |
| uint256 | ComputeMerkleRoot (std::vector< uint256 > hashes, bool *mutated) |
| uint256 | BlockMerkleRoot (const CBlock &block, bool *mutated) |
| uint256 | BlockWitnessMerkleRoot (const CBlock &block) |
| static void | MerkleComputation (const std::vector< uint256 > &leaves, uint32_t leaf_pos, std::vector< uint256 > &path) |
| static std::vector< uint256 > | ComputeMerklePath (const std::vector< uint256 > &leaves, uint32_t position) |
| std::vector< uint256 > | TransactionMerklePath (const CBlock &block, uint32_t position) |
| Compute merkle path to the specified transaction. More... | |
Definition at line 74 of file merkle.cpp.
Definition at line 84 of file merkle.cpp.
|
static |
Definition at line 174 of file merkle.cpp.
Definition at line 54 of file merkle.cpp.
|
static |
Definition at line 96 of file merkle.cpp.
Compute merkle path to the specified transaction.
| [in] | block | the block |
| [in] | position | transaction for which to calculate the merkle path (0 is the coinbase) |
Definition at line 180 of file merkle.cpp.