Skip to main content

TxId

This is a type-safe wrapper around ByteArray representing the hash of a transaction.

Associated functions​

new​

TxId::new(bytes: ByteArray) -> TxId

from_data​

TxId::from_data(data: Data) -> TxId

Getters​

tx_id.bytes -> ByteArray

Operators​

==

TxId == TxId -> Bool

!=​

TxId != TxId -> Bool

>=​

TxId >= TxId -> Bool

>​

TxId > TxId -> Bool

<=​

TxId <= TxId -> Bool

<​

TxId < TxId -> Bool

Methods​

serialize​

tx_id.serialize() -> ByteArray

show​

Hexadecimal representation of a TxId.

tx_id.show() -> String