ckb_traits/
extension_provider.rs

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>;
}