Trait enjen::EpochVerifier [−][src]
Verifier for all blocks within an epoch with self-contained state.
Provided methods
fn verify_light(&self, _header: &Header) -> Result<(), Error>
[src]
Lightly verify the next block header. This may not be a header belonging to a different epoch.
fn verify_heavy(&self, header: &Header) -> Result<(), Error>
[src]
Perform potentially heavier checks on the next block header.
fn check_finality_proof(&self, _proof: &[u8]) -> Option<Vec<H256>>
[src]
Check a finality proof against this epoch verifier.
Returns Some(hashes)
if the proof proves finality of these hashes.
Returns None
if the proof doesn’t prove anything.