pub enum TxIdentifier {
Hash([u8; 32]),
BatchIdAndOffset(BatchIdAndOffset),
Number(u64),
}
Expand description
An identifier that specifies a single transaction.
Variants§
Hash([u8; 32])
The hex encoded hash of the transaction.
BatchIdAndOffset(BatchIdAndOffset)
An offset into a particular batch (i.e. the 3rd transaction in batch 5).
Number(u64)
The monotonically increasing number of the tx, ordered by the DA layer For example, if genesis contains 0 txs, batch 1 contains 8 txs, and batch 3 contains 7 txs, the last tx in batch 3 would have number 15. The counter never resets.
Trait Implementations§
Source§impl Debug for TxIdentifier
impl Debug for TxIdentifier
Source§impl<'de> Deserialize<'de> for TxIdentifier
impl<'de> Deserialize<'de> for TxIdentifier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TxIdentifier
impl PartialEq for TxIdentifier
Source§impl Serialize for TxIdentifier
impl Serialize for TxIdentifier
impl StructuralPartialEq for TxIdentifier
Auto Trait Implementations§
impl Freeze for TxIdentifier
impl RefUnwindSafe for TxIdentifier
impl Send for TxIdentifier
impl Sync for TxIdentifier
impl Unpin for TxIdentifier
impl UnwindSafe for TxIdentifier
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