Trait diem_crypto::traits::VerifiableDelayFunction
source · pub trait VerifiableDelayFunction {
// Required methods
fn solve(&self, challenge: &[u8], difficulty: u64) -> Result<Vec<u8>>;
fn verify(
&self,
challenge: &[u8],
difficulty: u64,
alleged_solution: &[u8]
) -> Result<()>;
}
Expand description
The trait for VDF.