Bitcoin Core  31.0.0
P2P Digital Currency
Classes | Typedefs | Variables
transaction_identifier.h File Reference
#include <attributes.h>
#include <uint256.h>
#include <util/types.h>
#include <compare>
#include <cstddef>
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <variant>
Include dependency graph for transaction_identifier.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  transaction_identifier< has_witness >
 transaction_identifier represents the two canonical transaction identifier types (txid, wtxid). More...
 
class  GenTxid
 

Typedefs

using Txid = transaction_identifier< false >
 Txid commits to all transaction fields except the witness. More...
 
using Wtxid = transaction_identifier< true >
 Wtxid commits to all transaction fields including the witness. More...
 

Variables

template<typename T >
concept TxidOrWtxid = std::is_same_v<T, Txid> || std::is_same_v<T, Wtxid>
 

Typedef Documentation

◆ Txid

using Txid = transaction_identifier<false>

Txid commits to all transaction fields except the witness.

Definition at line 71 of file transaction_identifier.h.

◆ Wtxid

Wtxid commits to all transaction fields including the witness.

Definition at line 73 of file transaction_identifier.h.

Variable Documentation

◆ TxidOrWtxid

template<typename T >
concept TxidOrWtxid = std::is_same_v<T, Txid> || std::is_same_v<T, Wtxid>

Definition at line 76 of file transaction_identifier.h.