fn changes_trie_roots_proof_at_cht(
		&self,
		cht_size: u64,
		cht_num: NumberFor<Block>,
		blocks: Vec<NumberFor<Block>>
	) -> error::Result<Vec<Vec<u8>>> {
		let cht_start = cht::start_number(cht_size, cht_num);
		let roots = (cht_start.as_()..).map(|num| self.header(&BlockId::Number(As::sa(num)))
			.map(|block| block.and_then(|block| block.digest().log(DigestItem::as_changes_trie_root).cloned())));
		let proof = cht::build_proof::<Block::Header, Blake2Hasher, _, _>(cht_size, cht_num, blocks, roots)?;
		Ok(proof)
	}
/// Generates CHT-based proof for roots of changes tries at given blocks (that are part of single CHT).
Generates CHT-based proof for roots of changes tries at given blocks (that are part of single CHT).
Generates CHT - based proof for roots of changes tries at given blocks ( that are part of single CHT ) .
fn changes_trie_roots_proof_at_cht(
		&self,
		cht_size: u64,
		cht_num: NumberFor<Block>,
		blocks: Vec<NumberFor<Block>>
	) -> error::Result<Vec<Vec<u8>>> {
		let cht_start = cht::start_number(cht_size, cht_num);
		let roots = (cht_start.as_()..).map(|num| self.header(&BlockId::Number(As::sa(num)))
			.map(|block| block.and_then(|block| block.digest().log(DigestItem::as_changes_trie_root).cloned())));
		let proof = cht::build_proof::<Block::Header, Blake2Hasher, _, _>(cht_size, cht_num, blocks, roots)?;
		Ok(proof)
	}
fn changes_trie_roots_proof_at_cht ( & self , cht_size : u64 , cht_num : NumberFor < Block > , blocks : Vec < NumberFor < Block > > ) -> error :: Result < Vec < Vec < u8 > > > { let cht_start = cht :: start_number ( cht_size , cht_num ) ; let roots = ( cht_start . as_ ( ) .. ) . map ( | num | self . header ( & BlockId :: Number ( As :: sa ( num ) ) ) . map ( | block | block . and_then ( | block | block . digest ( ) . log ( DigestItem :: as_changes_trie_root ) . cloned ( ) ) ) ) ; let proof = cht :: build_proof :: < Block :: Header , Blake2Hasher , _ , _ > ( cht_size , cht_num , blocks , roots ) ? ; Ok ( proof ) }
Generates CHT-based proof for roots of changes tries at given blocks (that are part of single CHT).
Generates CHT - based proof for roots of changes tries at given blocks ( that are part of single CHT ) .
&self
cht_size
u64
cht_num
NumberFor<Block>
blocks
Vec<NumberFor<Block>>
&self
cht_size
u64
cht_num
NumberFor<Block>
blocks
Vec<NumberFor<Block>>