Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
signet.cpp File Reference
#include <signet.h>
#include <consensus/merkle.h>
#include <consensus/params.h>
#include <consensus/validation.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <streams.h>
#include <uint256.h>
#include <util/check.h>
#include <util/log.h>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <exception>
#include <memory>
#include <span>
#include <utility>
#include <vector>
Include dependency graph for signet.cpp:

Go to the source code of this file.

Functions

static bool FetchAndClearCommitmentSection (const std::span< const uint8_t > header, CScript &witness_commitment, std::vector< uint8_t > &result)
static uint256 ComputeModifiedMerkleRoot (const CMutableTransaction &cb, const CBlock &block)
bool CheckSignetBlockSolution (const CBlock &block, const Consensus::Params &consensusParams)
 Extract signature and check whether a block has a valid solution.

Variables

static constexpr uint8_t SIGNET_HEADER [4] = {0xec, 0xc7, 0xda, 0xa2}
static constexpr script_verify_flags BLOCK_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_DERSIG | SCRIPT_VERIFY_NULLDUMMY

Function Documentation

◆ CheckSignetBlockSolution()

bool CheckSignetBlockSolution ( const CBlock & block,
const Consensus::Params & consensusParams )

Extract signature and check whether a block has a valid solution.

Definition at line 126 of file signet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeModifiedMerkleRoot()

uint256 ComputeModifiedMerkleRoot ( const CMutableTransaction & cb,
const CBlock & block )
static

Definition at line 59 of file signet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FetchAndClearCommitmentSection()

bool FetchAndClearCommitmentSection ( const std::span< const uint8_t > header,
CScript & witness_commitment,
std::vector< uint8_t > & result )
static

Definition at line 32 of file signet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BLOCK_SCRIPT_VERIFY_FLAGS

script_verify_flags BLOCK_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_DERSIG | SCRIPT_VERIFY_NULLDUMMY
staticconstexpr

Definition at line 30 of file signet.cpp.

◆ SIGNET_HEADER

uint8_t SIGNET_HEADER[4] = {0xec, 0xc7, 0xda, 0xa2}
staticconstexpr

Definition at line 28 of file signet.cpp.