pub trait MessageSigner<A>: Sizedwhere
A: SignatureAlgorithmType,{
// Required method
async fn sign(
self,
algorithm: <A as SignatureAlgorithmType>::Instance,
message: &[u8],
) -> Result<Vec<u8>, MessageSignatureError>;
// Provided method
async fn sign_multi(
self,
algorithm: <A as SignatureAlgorithmType>::Instance,
messages: &[Vec<u8>],
) -> Result<Vec<u8>, MessageSignatureError> { ... }
}Required Methods§
async fn sign( self, algorithm: <A as SignatureAlgorithmType>::Instance, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
Provided Methods§
async fn sign_multi( self, algorithm: <A as SignatureAlgorithmType>::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>
Object Safety§
This trait is not object safe.