pub fn vdf_compute(params: &VdfParams, input: &[u8]) -> (VdfOutput, VdfProof)Expand description
Compute VDF on given input.
Returns the output and a proof of computation.
§Arguments
params- VDF parametersinput- Input data
§Example
use chie_crypto::vdf_delay::{VdfParams, vdf_compute};
let params = VdfParams::new(10000);
let input = b"challenge_data";
let (output, proof) = vdf_compute(¶ms, input);