Raven Core  3.0.0
P2P Digital Currency
Functions
merkle.h File Reference
#include <stdint.h>
#include <vector>
#include "primitives/transaction.h"
#include "primitives/block.h"
#include "uint256.h"
Include dependency graph for merkle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint256 ComputeMerkleRoot (const std::vector< uint256 > &leaves, bool *mutated=nullptr)
 
std::vector< uint256ComputeMerkleBranch (const std::vector< uint256 > &leaves, uint32_t position)
 
uint256 ComputeMerkleRootFromBranch (const uint256 &leaf, const std::vector< uint256 > &branch, uint32_t position)
 
uint256 BlockMerkleRoot (const CBlock &block, bool *mutated=nullptr)
 
uint256 BlockWitnessMerkleRoot (const CBlock &block, bool *mutated=nullptr)
 
std::vector< uint256BlockMerkleBranch (const CBlock &block, uint32_t position)
 

Function Documentation

◆ BlockMerkleBranch()

std::vector<uint256> BlockMerkleBranch ( const CBlock block,
uint32_t  position 
)

Definition at line 180 of file merkle.cpp.

Here is the call graph for this function:

◆ BlockMerkleRoot()

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

Definition at line 159 of file merkle.cpp.

Here is the call graph for this function:

◆ BlockWitnessMerkleRoot()

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

Definition at line 169 of file merkle.cpp.

Here is the call graph for this function:

◆ ComputeMerkleBranch()

std::vector<uint256> ComputeMerkleBranch ( const std::vector< uint256 > &  leaves,
uint32_t  position 
)

Definition at line 140 of file merkle.cpp.

Here is the caller graph for this function:

◆ ComputeMerkleRoot()

uint256 ComputeMerkleRoot ( const std::vector< uint256 > &  leaves,
bool *  mutated = nullptr 
)

Definition at line 134 of file merkle.cpp.

Here is the caller graph for this function:

◆ ComputeMerkleRootFromBranch()

uint256 ComputeMerkleRootFromBranch ( const uint256 leaf,
const std::vector< uint256 > &  branch,
uint32_t  position 
)

Definition at line 146 of file merkle.cpp.

Here is the call graph for this function: