Struct plutus_ledger_api::v1::transaction::TransactionHash
source · pub struct TransactionHash(pub LedgerBytes);
Expand description
32-bytes blake2b256 hash of a transaction body.
Also known as Transaction ID or TxID
.
Note: Plutus docs might incorrectly state that it uses SHA256.
Tuple Fields§
§0: LedgerBytes
Trait Implementations§
source§impl Clone for TransactionHash
impl Clone for TransactionHash
source§fn clone(&self) -> TransactionHash
fn clone(&self) -> TransactionHash
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionHash
impl Debug for TransactionHash
source§impl Hash for TransactionHash
impl Hash for TransactionHash
source§impl IsPlutusData for TransactionHash
impl IsPlutusData for TransactionHash
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for TransactionHash
impl Ord for TransactionHash
source§fn cmp(&self, other: &TransactionHash) -> Ordering
fn cmp(&self, other: &TransactionHash) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransactionHash
impl PartialEq for TransactionHash
source§fn eq(&self, other: &TransactionHash) -> bool
fn eq(&self, other: &TransactionHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransactionHash
impl PartialOrd for TransactionHash
source§fn partial_cmp(&self, other: &TransactionHash) -> Option<Ordering>
fn partial_cmp(&self, other: &TransactionHash) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TransactionHash
impl StructuralPartialEq for TransactionHash
Auto Trait Implementations§
impl Freeze for TransactionHash
impl RefUnwindSafe for TransactionHash
impl Send for TransactionHash
impl Sync for TransactionHash
impl Unpin for TransactionHash
impl UnwindSafe for TransactionHash
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more