referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait FindAuthor

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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])>,

Implementors§

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

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

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