[−][src]Struct storage_proofs::circuit::vdf_post::VDFPoStCircuit
This is the VDF-PoSt
circuit.
Fields
params: &'a E::Params
Paramters for the engine.
challenge_seed: Option<E::Fr>
vdf_key: Option<E::Fr>
vdf_ys: Vec<Option<E::Fr>>
vdf_xs: Vec<Option<E::Fr>>
vdf_sloth_rounds: usize
challenges_vec: Vec<Vec<Option<usize>>>
challenged_sectors_vec: Vec<Vec<Option<usize>>>
challenged_leafs_vec: Vec<Vec<Option<E::Fr>>>
commitments_vec: Vec<Vec<Option<E::Fr>>>
root_commitment: Option<E::Fr>
paths_vec: Vec<Vec<Vec<Option<(E::Fr, bool)>>>>
Methods
impl<'a, E: JubjubEngine> VDFPoStCircuit<'a, E>
[src]
pub fn synthesize<CS: ConstraintSystem<E>>(
cs: &mut CS,
params: &E::Params,
challenge_seed: Option<E::Fr>,
vdf_key: Option<E::Fr>,
vdf_ys: Vec<Option<E::Fr>>,
vdf_xs: Vec<Option<E::Fr>>,
vdf_sloth_rounds: usize,
challenges_vec: Vec<Vec<Option<usize>>>,
challenged_sectors_vec: Vec<Vec<Option<usize>>>,
challenged_leafs_vec: Vec<Vec<Option<E::Fr>>>,
root_commitment: Option<E::Fr>,
commitments_vec: Vec<Vec<Option<E::Fr>>>,
paths_vec: Vec<Vec<Vec<Option<(E::Fr, bool)>>>>
) -> Result<(), SynthesisError>
[src]
cs: &mut CS,
params: &E::Params,
challenge_seed: Option<E::Fr>,
vdf_key: Option<E::Fr>,
vdf_ys: Vec<Option<E::Fr>>,
vdf_xs: Vec<Option<E::Fr>>,
vdf_sloth_rounds: usize,
challenges_vec: Vec<Vec<Option<usize>>>,
challenged_sectors_vec: Vec<Vec<Option<usize>>>,
challenged_leafs_vec: Vec<Vec<Option<E::Fr>>>,
root_commitment: Option<E::Fr>,
commitments_vec: Vec<Vec<Option<E::Fr>>>,
paths_vec: Vec<Vec<Vec<Option<(E::Fr, bool)>>>>
) -> Result<(), SynthesisError>
Trait Implementations
impl<'a, E: JubjubEngine> CircuitComponent for VDFPoStCircuit<'a, E>
[src]
impl<'a, H, V> CompoundProof<'a, Bls12, VDFPoSt<H, V>, VDFPoStCircuit<'a, Bls12>> for VDFPostCompound where
H: 'static + Hasher,
V: Vdf<H::Domain>,
<V as Vdf<H::Domain>>::PublicParams: Send + Sync,
<V as Vdf<H::Domain>>::Proof: Send + Sync,
V: Sync + Send,
[src]
H: 'static + Hasher,
V: Vdf<H::Domain>,
<V as Vdf<H::Domain>>::PublicParams: Send + Sync,
<V as Vdf<H::Domain>>::Proof: Send + Sync,
V: Sync + Send,
fn generate_public_inputs(
pub_in: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicInputs,
_pub_params: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Vec<Fr>
[src]
pub_in: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicInputs,
_pub_params: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Vec<Fr>
fn circuit(
pub_in: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicInputs,
_component_private_inputs: <VDFPoStCircuit<'a, Bls12> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<VDFPoSt<H, V> as ProofScheme<'a>>::Proof,
pub_params: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> VDFPoStCircuit<'a, Bls12>
[src]
pub_in: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicInputs,
_component_private_inputs: <VDFPoStCircuit<'a, Bls12> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<VDFPoSt<H, V> as ProofScheme<'a>>::Proof,
pub_params: &<VDFPoSt<H, V> as ProofScheme<'a>>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> VDFPoStCircuit<'a, Bls12>
fn blank_circuit(
pub_params: &<VDFPoSt<H, V> as ProofScheme>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> VDFPoStCircuit<'a, Bls12>
[src]
pub_params: &<VDFPoSt<H, V> as ProofScheme>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> VDFPoStCircuit<'a, Bls12>
fn setup<'b>(sp: &SetupParams<'a, 'b, E, S>) -> Result<PublicParams<'a, E, S>> where
E::Params: Sync,
[src]
E::Params: Sync,
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]
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,
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]
public_params: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
multi_proof: &MultiProof<E>,
requirements: &S::Requirements
) -> Result<bool>
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]
pub_in: &S::PublicInputs,
vanilla_proof: &S::Proof,
pub_params: &'b S::PublicParams,
params: &'a E::Params,
groth_params: &Parameters<E>
) -> Result<Proof<E>>
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]
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<Parameters<E>>
fn verifying_key(
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<VerifyingKey<E>>
[src]
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<VerifyingKey<E>>
fn circuit_for_test(
public_parameters: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
private_inputs: &S::PrivateInputs
) -> (C, Vec<E::Fr>)
[src]
public_parameters: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
private_inputs: &S::PrivateInputs
) -> (C, Vec<E::Fr>)
impl<'a, E: Debug + JubjubEngine> Debug for VDFPoStCircuit<'a, E> where
E::Params: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
[src]
E::Params: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
impl<'a, E: JubjubEngine> Circuit<E> for VDFPoStCircuit<'a, E>
[src]
fn synthesize<CS: ConstraintSystem<E>>(
self,
cs: &mut CS
) -> Result<(), SynthesisError>
[src]
self,
cs: &mut CS
) -> Result<(), SynthesisError>
Auto Trait Implementations
impl<'a, E> Unpin for VDFPoStCircuit<'a, E> where
<E as ScalarEngine>::Fr: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<'a, E> Sync for VDFPoStCircuit<'a, E> where
<E as ScalarEngine>::Fr: Sync,
<E as JubjubEngine>::Params: Sync,
<E as ScalarEngine>::Fr: Sync,
<E as JubjubEngine>::Params: Sync,
impl<'a, E> Send for VDFPoStCircuit<'a, E> where
<E as ScalarEngine>::Fr: Send,
<E as JubjubEngine>::Params: Sync,
<E as ScalarEngine>::Fr: Send,
<E as JubjubEngine>::Params: Sync,
impl<'a, E> RefUnwindSafe for VDFPoStCircuit<'a, E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
impl<'a, E> UnwindSafe for VDFPoStCircuit<'a, E> where
<E as ScalarEngine>::Fr: UnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,