pub trait VerifierV2 {
type Signature;
// Required method
fn verify_v2(
&self,
message: &[u8],
signature: &Self::Signature,
) -> Result<(), Error>;
// Provided methods
fn verify_any_v2<'a, I>(
&self,
message: &[u8],
signatures: I,
) -> Result<(), Error>
where I: Iterator<Item = &'a Self::Signature>,
Self::Signature: 'a { ... }
fn verify_against_any<'a, I>(
verifiers: I,
message: &[u8],
signature: &Self::Signature,
) -> Result<(), Error>
where I: Iterator<Item = &'a Self>,
Self: 'a { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn verify_any_v2<'a, I>( &self, message: &[u8], signatures: I, ) -> Result<(), Error>
fn verify_against_any<'a, I>(
verifiers: I,
message: &[u8],
signature: &Self::Signature,
) -> Result<(), Error>where
I: Iterator<Item = &'a Self>,
Self: 'a,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".