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

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

Required Methods§

fn find_author<'a, I>(digests: I) -> Option<Author>
where I: 'a + IntoIterator<Item = ([u8; 4], &'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§

§

impl<A> FindAuthor<A> for ()

§

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

source§

impl<T> FindAuthor<u32> for Pallet<T>
where T: Config,

source§

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

§

impl<T, Inner> FindAuthor<<T as Config>::ValidatorId> for FindAccountFromAuthorIndex<T, Inner>
where T: Config, Inner: FindAuthor<u32>,

§

fn find_author<'a, I>(digests: I) -> Option<<T as Config>::ValidatorId>
where I: 'a + IntoIterator<Item = ([u8; 4], &'a [u8])>,

Implementors§