Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
SignetTxs Class Reference

Generate the signet tx corresponding to the given block. More...

#include <signet.h>

Collaboration diagram for SignetTxs:
[legend]

Static Public Member Functions

static std::optional< SignetTxsCreate (const CBlock &block, const CScript &challenge)

Public Attributes

const CTransaction m_to_spend
const CTransaction m_to_sign

Private Member Functions

template<class T1, class T2>
 SignetTxs (const T1 &to_spend, const T2 &to_sign)

Detailed Description

Generate the signet tx corresponding to the given block.

The signet tx commits to everything in the block except:

  1. It hashes a modified merkle root with the signet signature removed.
  2. It skips the nonce.

Definition at line 30 of file signet.h.

Constructor & Destructor Documentation

◆ SignetTxs()

template<class T1, class T2>
SignetTxs::SignetTxs ( const T1 & to_spend,
const T2 & to_sign )
inlineprivate

Definition at line 32 of file signet.h.

Here is the caller graph for this function:

Member Function Documentation

◆ Create()

std::optional< SignetTxs > SignetTxs::Create ( const CBlock & block,
const CScript & challenge )
static

Definition at line 70 of file signet.cpp.

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

Member Data Documentation

◆ m_to_sign

const CTransaction SignetTxs::m_to_sign

Definition at line 38 of file signet.h.

◆ m_to_spend

const CTransaction SignetTxs::m_to_spend

Definition at line 37 of file signet.h.


The documentation for this class was generated from the following files: