Trait subcoin_primitives::CoinStorageKey

source ·
pub trait CoinStorageKey: Send + Sync {
    // Required methods
    fn storage_key(&self, txid: Txid, vout: u32) -> Vec<u8> ;
    fn storage_prefix(&self) -> [u8; 32];
}
Expand description

Deals with the storage key for UTXO in the state.

Required Methods§

source

fn storage_key(&self, txid: Txid, vout: u32) -> Vec<u8>

Returns the storage key for the given output specified by (txid, vout).

source

fn storage_prefix(&self) -> [u8; 32]

Returns the final storage prefix for Coins.

Implementors§