pub trait VRF<PublicKey, SecretKey> {
type Error;
// Required methods
fn prove(
&mut self,
x: SecretKey,
alpha: &[u8],
) -> Result<Vec<u8>, Self::Error>;
fn verify(
&mut self,
y: PublicKey,
pi: &[u8],
alpha: &[u8],
) -> Result<Vec<u8>, Self::Error>;
}Expand description
A trait containing the common capabilities for all Verifiable Random Functions (VRF) implementations.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".