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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.