transaction_identifier represents the two canonical transaction identifier types (txid, wtxid).
Synopsis
Declared in <primitives/transaction_identifier.h>
template<bool has_witness>
class transaction_identifier;
Member Functions
Name |
Description |
|
Constructors |
Returns the identifier as a hex string. |
|
Wrapped |
|
Serializes the wrapped value to a stream. |
|
Resets the identifier to its null value. |
|
Returns a human‐readable description of the identifier. |
|
Returns the underlying 256‐bit value. |
|
Unserializes the wrapped value from a stream. |
|
Returns an iterator to the first byte of the wrapped value. |
|
Returns a pointer to the first byte of the wrapped value. |
|
Returns an iterator past the last byte of the wrapped value. |
|
Compares two identifiers for equality. |
|
Orders two identifiers by their wrapped value. |
Static Member Functions
Name |
Description |
Builds an identifier by parsing a hex string. |
|
Builds an identifier from a raw 256‐bit value. |
|
Returns the identifier size in bytes. |
Created with MrDocs