Trait sc_network_common::service::NetworkSigner
source · 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§
sourcefn sign_with_local_identity(
&self,
msg: impl AsRef<[u8]>
) -> Result<Signature, SigningError>
fn sign_with_local_identity( &self, msg: impl AsRef<[u8]> ) -> Result<Signature, SigningError>
Signs the message with the KeyPair
that defines the local PeerId
.