referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::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.

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])>,

Implementors§