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

Means that transaction has a unique identifier.

Required Methods§

source

fn id(&self, params: &ConsensusParameters) -> 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§