Trait fuel_tx::UniqueIdentifier

source ·
pub trait UniqueIdentifier {
    // Required methods
    fn id(&self, chain_id: &ChainId) -> Bytes32;
    fn cached_id(&self) -> Option<Bytes32>;
}
Expand description

Means that transaction has a unique identifier.

Required Methods§

source

fn id(&self, chain_id: &ChainId) -> Bytes32

The unique identifier of the transaction is based on its content.

source

fn cached_id(&self) -> Option<Bytes32>

The cached unique identifier of the transaction. Returns None if transaction was not precomputed.

Implementors§

source§

impl UniqueIdentifier for Transaction

source§

impl UniqueIdentifier for Mint

source§

impl<Body, MetadataBody> UniqueIdentifier for ChargeableTransaction<Body, MetadataBody>
where Body: PrepareSign, Self: Clone + ChargeableBody<Body> + Serialize,