1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::Sdk;

/// State transition identifier
pub struct TxId([u8; 32]);
impl TxId {
    /// Checks if the state transition is confirmed
    pub fn is_confirmed(&self, _sdk: &Sdk) -> bool {
        todo!("Not implemented")
    }
}

impl From<TxId> for [u8; 32] {
    fn from(tx_id: TxId) -> Self {
        tx_id.0
    }
}

impl From<[u8; 32]> for TxId {
    fn from(value: [u8; 32]) -> Self {
        TxId(value)
    }
}