[−][src]Trait storage_proofs::vdf::Vdf
Generic trait to represent any Verifiable Delay Function (VDF).
Associated Types
type SetupParams: Clone + Debug
type PublicParams: Clone + Debug
type Proof: Clone + Debug + Serialize + DeserializeOwned
Required methods
fn setup(setup_params: &Self::SetupParams) -> Result<Self::PublicParams>
fn eval(
public_params: &Self::PublicParams,
input: &T
) -> Result<(T, Self::Proof)>
public_params: &Self::PublicParams,
input: &T
) -> Result<(T, Self::Proof)>
fn verify(
public_params: &Self::PublicParams,
input: &T,
proof: &Self::Proof
) -> Result<bool>
public_params: &Self::PublicParams,
input: &T,
proof: &Self::Proof
) -> Result<bool>
fn key(pp: &Self::PublicParams) -> T
fn rounds(pp: &Self::PublicParams) -> usize
fn extract_output(proof: &Self::Proof) -> T
Implementors
impl Vdf<PedersenDomain> for Sloth
[src]
type SetupParams = SetupParams
type PublicParams = PublicParams
type Proof = Proof
fn setup(sp: &Self::SetupParams) -> Result<Self::PublicParams>
[src]
fn eval(
pp: &Self::PublicParams,
x: &PedersenDomain
) -> Result<(PedersenDomain, Self::Proof)>
[src]
pp: &Self::PublicParams,
x: &PedersenDomain
) -> Result<(PedersenDomain, Self::Proof)>
fn verify(
pp: &Self::PublicParams,
x: &PedersenDomain,
proof: &Self::Proof
) -> Result<bool>
[src]
pp: &Self::PublicParams,
x: &PedersenDomain,
proof: &Self::Proof
) -> Result<bool>