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: ?Sized + NetworkSigner,

Implementors§