pub trait MessageSigner<A: SignatureAlgorithmType>: Sized {
// Required method
async fn sign(
self,
algorithm: A::Instance,
message: &[u8],
) -> Result<Vec<u8>, MessageSignatureError>;
// Provided method
async fn sign_multi(
self,
algorithm: A::Instance,
messages: &[Vec<u8>],
) -> Result<Vec<u8>, MessageSignatureError> { ... }
}
Required Methods§
async fn sign( self, algorithm: A::Instance, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
Provided Methods§
async fn sign_multi( self, algorithm: A::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.