Bitcoin
Functions
merkle.h File Reference
#include <stdint.h>
#include <vector>
#include <primitives/transaction.h>
#include <primitives/block.h>
#include <uint256.h>

Go to the source code of this file.

Functions

uint256 ComputeMerkleRoot (std::vector< uint256 > hashes, bool *mutated=nullptr)
 
uint256 BlockMerkleRoot (const CBlock &block, bool *mutated=nullptr)
 
uint256 BlockWitnessMerkleRoot (const CBlock &block, bool *mutated=nullptr)
 

Function Documentation

◆ BlockMerkleRoot()

uint256 BlockMerkleRoot ( const CBlock block,
bool *  mutated = nullptr 
)

◆ BlockWitnessMerkleRoot()

uint256 BlockWitnessMerkleRoot ( const CBlock block,
bool *  mutated = nullptr 
)

◆ ComputeMerkleRoot()

uint256 ComputeMerkleRoot ( std::vector< uint256 hashes,
bool *  mutated = nullptr 
)