referrerpolicy=no-referrer-when-downgrade

Trait sp_consensus_beefy::mmr::BeefyDataProvider

source ·
pub trait BeefyDataProvider<ExtraData> {
    // Required method
    fn extra_data() -> ExtraData;
}
Expand description

A provider for extra data that gets added to the Mmr leaf

Required Methods§

source

fn extra_data() -> ExtraData

Return a vector of bytes, ideally should be a merkle root hash

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BeefyDataProvider<Vec<u8>> for ()

A default implementation for runtimes.

Implementors§