Trait frame_support::traits::FindAuthor [−][src]
pub trait FindAuthor<Author> {
fn find_author<'a, I>(digests: I) -> Option<Author>
where
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>;
}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 = (ConsensusEngineId, &'a [u8])>, [src]
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
Find the author of a block based on the pre-runtime digests.
Implementations on Foreign Types
impl<A> FindAuthor<A> for ()[src]
impl<A> FindAuthor<A> for ()[src]fn find_author<'a, I>(_: I) -> Option<A> where
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>, [src]
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,