pub trait ECVRF<PrivateKey, PublicKey> {
type Error;
// Required methods
fn prove(
&mut self,
pkey: PrivateKey,
alpha_string: &[u8],
) -> Result<Vec<u8>, Self::Error>;
fn proof_to_hash(
&mut self,
pi_string: &[u8],
) -> Result<Vec<u8>, Self::Error>;
fn verify(
&mut self,
public_key: PublicKey,
alpha_string: &[u8],
pi_string: &[u8],
) -> Result<Vec<u8>, Self::Error>;
}Expand description
A trait containing common capabilities for ECVRF implementations