[][src]Struct storage_proofs::circuit::beacon_post::BeaconPoStCircuit

pub struct BeaconPoStCircuit<'a, E: JubjubEngine, H: Hasher, V: Vdf<H::Domain>> {
    pub params: &'a E::Params,
    pub challenge_seed: Option<E::Fr>,
    pub vdf_key: Option<E::Fr>,
    pub vdf_ys_vec: Vec<Vec<Option<E::Fr>>>,
    pub vdf_xs_vec: Vec<Vec<Option<E::Fr>>>,
    pub vdf_sloth_rounds: usize,
    pub challenges_vec_vec: Vec<Vec<Vec<Option<usize>>>>,
    pub challenged_sectors_vec_vec: Vec<Vec<Vec<Option<usize>>>>,
    pub challenged_leafs_vec_vec: Vec<Vec<Vec<Option<E::Fr>>>>,
    pub root_commitment: Option<E::Fr>,
    pub commitments_vec_vec: Vec<Vec<Vec<Option<E::Fr>>>>,
    pub paths_vec_vec: Vec<Vec<Vec<Vec<Option<(E::Fr, bool)>>>>>,
    // some fields omitted
}

This is the Beacon-PoSt circuit.

Fields

params: &'a E::Params

Parameters for the engine.

challenge_seed: Option<E::Fr>vdf_key: Option<E::Fr>vdf_ys_vec: Vec<Vec<Option<E::Fr>>>vdf_xs_vec: Vec<Vec<Option<E::Fr>>>vdf_sloth_rounds: usizechallenges_vec_vec: Vec<Vec<Vec<Option<usize>>>>challenged_sectors_vec_vec: Vec<Vec<Vec<Option<usize>>>>challenged_leafs_vec_vec: Vec<Vec<Vec<Option<E::Fr>>>>root_commitment: Option<E::Fr>commitments_vec_vec: Vec<Vec<Vec<Option<E::Fr>>>>paths_vec_vec: Vec<Vec<Vec<Vec<Option<(E::Fr, bool)>>>>>

Trait Implementations

impl<'a, E: JubjubEngine, H: Hasher, V: Vdf<H::Domain>> CircuitComponent for BeaconPoStCircuit<'a, E, H, V>[src]

impl<'a, H: Hasher, V: Vdf<H::Domain>> CompoundProof<'a, Bls12, BeaconPoSt<H, V>, BeaconPoStCircuit<'a, Bls12, H, V>> for BeaconPoStCompound where
    <V as Vdf<H::Domain>>::PublicParams: Send + Sync,
    <V as Vdf<H::Domain>>::Proof: Send + Sync,
    V: Sync + Send,
    H: 'a, 
[src]

fn setup<'b>(sp: &SetupParams<'a, 'b, E, S>) -> Result<PublicParams<'a, E, S>> where
    E::Params: Sync
[src]

fn partition_count(public_params: &PublicParams<'a, E, S>) -> usize[src]

fn prove<'b>(
    pub_params: &'b PublicParams<'a, E, S>,
    pub_in: &'b S::PublicInputs,
    priv_in: &'b S::PrivateInputs,
    groth_params: &'b Parameters<E>
) -> Result<MultiProof<'b, E>> where
    E::Params: Sync
[src]

prove is equivalent to ProofScheme::prove.

fn verify(
    public_params: &PublicParams<'a, E, S>,
    public_inputs: &S::PublicInputs,
    multi_proof: &MultiProof<E>,
    requirements: &S::Requirements
) -> Result<bool>
[src]

fn circuit_proof<'b>(
    pub_in: &S::PublicInputs,
    vanilla_proof: &S::Proof,
    pub_params: &'b S::PublicParams,
    params: &'a E::Params,
    groth_params: &Parameters<E>
) -> Result<Proof<E>>
[src]

circuit_proof creates and synthesizes a circuit from concrete params/inputs, then generates a groth proof from it. It returns a groth proof. circuit_proof is used internally and should neither be called nor implemented outside of default trait methods. Read more

fn groth_params(
    public_params: &S::PublicParams,
    engine_params: &'a E::Params
) -> Result<Parameters<E>>
[src]

fn verifying_key(
    public_params: &S::PublicParams,
    engine_params: &'a E::Params
) -> Result<VerifyingKey<E>>
[src]

fn circuit_for_test(
    public_parameters: &PublicParams<'a, E, S>,
    public_inputs: &S::PublicInputs,
    private_inputs: &S::PrivateInputs
) -> (C, Vec<E::Fr>)
[src]

impl<'a, E: JubjubEngine, H: Hasher, V: Vdf<H::Domain>> Circuit<E> for BeaconPoStCircuit<'a, E, H, V>[src]

Auto Trait Implementations

impl<'a, E, H, V> Unpin for BeaconPoStCircuit<'a, E, H, V> where
    H: Unpin,
    V: Unpin,
    <E as ScalarEngine>::Fr: Unpin

impl<'a, E, H, V> Send for BeaconPoStCircuit<'a, E, H, V> where
    V: Send,
    <E as ScalarEngine>::Fr: Send,
    <E as JubjubEngine>::Params: Sync

impl<'a, E, H, V> Sync for BeaconPoStCircuit<'a, E, H, V> where
    V: Sync,
    <E as ScalarEngine>::Fr: Sync,
    <E as JubjubEngine>::Params: Sync

impl<'a, E, H, V> UnwindSafe for BeaconPoStCircuit<'a, E, H, V> where
    H: UnwindSafe,
    V: UnwindSafe,
    <E as ScalarEngine>::Fr: UnwindSafe,
    <E as JubjubEngine>::Params: RefUnwindSafe

impl<'a, E, H, V> RefUnwindSafe for BeaconPoStCircuit<'a, E, H, V> where
    H: RefUnwindSafe,
    V: RefUnwindSafe,
    <E as ScalarEngine>::Fr: RefUnwindSafe,
    <E as JubjubEngine>::Params: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,