pub trait Variant:
Clone
+ Send
+ Sync
+ Hash
+ Eq
+ Debug
+ 'static {
type Public: Point + FixedSize + Debug + Hash + Copy + AsRef<Self::Public>;
type Signature: Point + FixedSize + Debug + Hash + Copy + AsRef<Self::Signature>;
const PROOF_OF_POSSESSION: DST;
const MESSAGE: DST;
// Required methods
fn verify(
public: &Self::Public,
hm: &Self::Signature,
signature: &Self::Signature,
) -> Result<(), Error>;
fn batch_verify<R: RngCore + CryptoRng>(
rng: &mut R,
publics: &[Self::Public],
hms: &[Self::Signature],
signatures: &[Self::Signature],
) -> Result<(), Error>;
}
Expand description
A specific instance of a signature scheme.
Required Associated Constants§
Sourceconst PROOF_OF_POSSESSION: DST
const PROOF_OF_POSSESSION: DST
The domain separator tag (DST) for a proof of possession.
Required Associated Types§
Required Methods§
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.