pub enum BlockSignerHandler {
Local(PrivateKeySigner),
Remote(RemoteSignerHandler),
}Expand description
A handler for a block signer.
Variants§
Local(PrivateKeySigner)
A local block signer that is used to sign blocks with a locally available private key.
Remote(RemoteSignerHandler)
A remote block signer that is used to sign blocks with a remote private key.
Implementations§
Source§impl BlockSignerHandler
impl BlockSignerHandler
Sourcepub async fn sign_block(
&self,
payload_hash: PayloadHash,
chain_id: ChainId,
sender_address: Address,
) -> Result<Signature, BlockSignerError>
pub async fn sign_block( &self, payload_hash: PayloadHash, chain_id: ChainId, sender_address: Address, ) -> Result<Signature, BlockSignerError>
Signs a payload with the signer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockSignerHandler
impl !RefUnwindSafe for BlockSignerHandler
impl Send for BlockSignerHandler
impl Sync for BlockSignerHandler
impl Unpin for BlockSignerHandler
impl !UnwindSafe for BlockSignerHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more