Function sc_light::fetcher::cht::build_proof [−][src]
pub fn build_proof<Header, Hasher, BlocksI, HashesI>(
cht_size: <Header as Header>::Number,
cht_num: <Header as Header>::Number,
blocks: BlocksI,
hashes: HashesI
) -> Result<StorageProof, Error> where
Hasher: Hasher,
Header: Header,
BlocksI: IntoIterator<Item = <Header as Header>::Number>,
HashesI: IntoIterator<Item = Result<Option<<Header as Header>::Hash>, Error>>,
<Hasher as Hasher>::Out: Ord,
<Hasher as Hasher>::Out: Codec,
Expand description
Build CHT-based header proof.