Trait frame_support::traits::FindAuthor

source ·
pub trait FindAuthor<Author> {
    // Required method
    fn find_author<'a, I>(digests: I) -> Option<Author>
       where I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>;
}
Expand description

A trait for finding the author of a block header based on the PreRuntime digests contained within it.

Required Methods§

source

fn find_author<'a, I>(digests: I) -> Option<Author>
where I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,

Find the author of a block based on the pre-runtime digests.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A> FindAuthor<A> for ()

source§

fn find_author<'a, I>(_: I) -> Option<A>
where I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,

Implementors§