pub trait ShardMembershipEntropySourceChainInfo: Send + Sync {
// Required method
fn ancestor_header_proof_of_time(
&self,
ancestor_block_number: BlockNumber,
descendant_block_root: &BlockRoot,
) -> Option<PotOutput>;
}Expand description
Chain info for shard_membership_entropy_source().
Must have access to enough parent blocks.
Required Methods§
Sourcefn ancestor_header_proof_of_time(
&self,
ancestor_block_number: BlockNumber,
descendant_block_root: &BlockRoot,
) -> Option<PotOutput>
fn ancestor_header_proof_of_time( &self, ancestor_block_number: BlockNumber, descendant_block_root: &BlockRoot, ) -> Option<PotOutput>
Get proof of time of the block at ancestor_block_number on the chain ending at
descendant_block_root.
If ancestor_block_number is the descendant’s own number, the descendant’s proof of time
is returned. Returns None if ancestor_block_number is higher than the descendant’s
number or if either block is not available.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".