pub trait NetworkSigner {
    // Required method
    fn sign_with_local_identity(
        &self,
        msg: impl AsRef<[u8]>
    ) -> Result<Signature, SigningError>;
}
Expand description

Signer with network identity

Required Methods§

source

fn sign_with_local_identity( &self, msg: impl AsRef<[u8]> ) -> Result<Signature, SigningError>

Signs the message with the KeyPair that defines the local PeerId.

Implementations on Foreign Types§

source§

impl<T> NetworkSigner for Arc<T>where T: NetworkSigner + ?Sized,

Implementors§

source§

impl<B, H> NetworkSigner for NetworkService<B, H>where B: Block, H: ExHashT,