pub trait SigningMethod<S, A>: VerificationMethodwhere
A: SignatureAlgorithmType,{
// Required method
fn sign_bytes(
&self,
secret: &S,
algorithm: <A as SignatureAlgorithmType>::Instance,
bytes: &[u8],
) -> Result<Vec<u8>, MessageSignatureError>;
// Provided method
fn sign_bytes_multi(
&self,
secret: &S,
algorithm: <A as SignatureAlgorithmType>::Instance,
messages: &[Vec<u8>],
) -> Result<Vec<u8>, MessageSignatureError> { ... }
}
Required Methods§
fn sign_bytes( &self, secret: &S, algorithm: <A as SignatureAlgorithmType>::Instance, bytes: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
Provided Methods§
fn sign_bytes_multi( &self, secret: &S, 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.