Bitcoin ABC  0.22.13
P2P Digital Currency
txid.h
Go to the documentation of this file.
1 // Copyright (c) 2018-2019 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_PRIMITIVES_TXID_H
6 #define BITCOIN_PRIMITIVES_TXID_H
7 
8 #include <uint256.h>
9 
14 struct TxId : public uint256 {
15  explicit TxId() : uint256() {}
16  explicit TxId(const uint256 &b) : uint256(b) {}
17 };
18 
22 struct TxHash : public uint256 {
23  explicit TxHash() : uint256() {}
24  explicit TxHash(const uint256 &b) : uint256(b) {}
25 };
26 
27 #endif // BITCOIN_PRIMITIVES_TXID_H
TxId(const uint256 &b)
Definition: txid.h:16
TxHash()
Definition: txid.h:23
TxHash(const uint256 &b)
Definition: txid.h:24
A TxHash is the double sha256 hash of the full transaction data.
Definition: txid.h:22
TxId()
Definition: txid.h:15
256-bit opaque blob.
Definition: uint256.h:120
A TxId is the identifier of a transaction.
Definition: txid.h:14