ckb-traits 1.1.1

Common traits for accessing blockchain data
Documentation
1
2
3
4
5
6
7
use ckb_types::packed;

/// Trait for block extension field storage
pub trait ExtensionProvider {
    /// Get the extension field of the given block hash
    fn get_block_extension(&self, hash: &packed::Byte32) -> Option<packed::Bytes>;
}