pub trait VRF<PublicKey, SecretKey> {
type Error;
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.