Bitcoin Core  21.99.0
P2P Digital Currency
Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
SignetTxs Class Reference

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

#include <signet.h>

Collaboration diagram for SignetTxs:

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 26 of file signet.h.

Constructor & Destructor Documentation

◆ SignetTxs()

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

Definition at line 28 of file signet.h.

Member Function Documentation

◆ Create()

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

Definition at line 68 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 34 of file signet.h.

◆ m_to_spend

const CTransaction SignetTxs::m_to_spend

Definition at line 33 of file signet.h.

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