Struct storage_proofs_post::election::ElectionPoSt [−][src]
pub struct ElectionPoSt<'a, Tree> where
Tree: MerkleTreeTrait, { /* fields omitted */ }Trait Implementations
impl<'a, Tree: Clone> Clone for ElectionPoSt<'a, Tree> where
Tree: MerkleTreeTrait, [src]
impl<'a, Tree: Clone> Clone for ElectionPoSt<'a, Tree> where
Tree: MerkleTreeTrait, [src]fn clone(&self) -> ElectionPoSt<'a, Tree>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a, Tree> CompoundProof<'a, ElectionPoSt<'a, Tree>, ElectionPoStCircuit<Tree>> for ElectionPoStCompound<Tree> where
Tree: 'static + MerkleTreeTrait, [src]
impl<'a, Tree> CompoundProof<'a, ElectionPoSt<'a, Tree>, ElectionPoStCircuit<Tree>> for ElectionPoStCompound<Tree> where
Tree: 'static + MerkleTreeTrait, [src]fn generate_public_inputs(
pub_inputs: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<Vec<Fr>>[src]
pub_inputs: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<Vec<Fr>>
fn circuit(
pub_in: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
_priv_in: <ElectionPoStCircuit<Tree> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::Proof,
_pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<ElectionPoStCircuit<Tree>>[src]
pub_in: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
_priv_in: <ElectionPoStCircuit<Tree> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::Proof,
_pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<ElectionPoStCircuit<Tree>>
fn blank_circuit(
pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams
) -> ElectionPoStCircuit<Tree>[src]
pub_params: &<ElectionPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams
) -> ElectionPoStCircuit<Tree>
pub fn setup(sp: &SetupParams<'a, S>) -> Result<PublicParams<'a, S>, Error>[src]
pub fn partition_count(public_params: &PublicParams<'a, S>) -> usize[src]
pub fn prove(
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
priv_in: &<S as ProofScheme<'a>>::PrivateInputs,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>[src]
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
priv_in: &<S as ProofScheme<'a>>::PrivateInputs,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>
pub fn prove_with_vanilla(
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>[src]
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>
pub fn verify(
public_params: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
multi_proof: &MultiProof<'b>,
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>[src]
public_params: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
multi_proof: &MultiProof<'b>,
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>
pub fn batch_verify(
public_params: &PublicParams<'a, S>,
public_inputs: &[<S as ProofScheme<'a>>::PublicInputs],
multi_proofs: &[MultiProof<'b>],
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>[src]
public_params: &PublicParams<'a, S>,
public_inputs: &[<S as ProofScheme<'a>>::PublicInputs],
multi_proofs: &[MultiProof<'b>],
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>
pub fn circuit_proofs(
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
pub_params: &<S as ProofScheme<'a>>::PublicParams,
groth_params: &MappedParameters<Bls12>,
priority: bool
) -> Result<Vec<Proof<Bls12>, Global>, Error>[src]
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
pub_params: &<S as ProofScheme<'a>>::PublicParams,
groth_params: &MappedParameters<Bls12>,
priority: bool
) -> Result<Vec<Proof<Bls12>, Global>, Error>
pub fn groth_params<R>(
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore,
pub fn verifying_key<R>(
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore,
pub fn circuit_for_test(
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<(C, Vec<Fr, Global>), Error>[src]
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<(C, Vec<Fr, Global>), Error>
pub fn circuit_for_test_all(
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<Vec<(C, Vec<Fr, Global>), Global>, Error>[src]
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<Vec<(C, Vec<Fr, Global>), Global>, Error>
impl<'a, Tree: Debug> Debug for ElectionPoSt<'a, Tree> where
Tree: MerkleTreeTrait, [src]
impl<'a, Tree: Debug> Debug for ElectionPoSt<'a, Tree> where
Tree: MerkleTreeTrait, [src]impl<'a, Tree: 'static + MerkleTreeTrait> ProofScheme<'a> for ElectionPoSt<'a, Tree>[src]
impl<'a, Tree: 'static + MerkleTreeTrait> ProofScheme<'a> for ElectionPoSt<'a, Tree>[src]type PublicParams = PublicParams
type SetupParams = SetupParams
type PublicInputs = PublicInputs<<Tree::Hasher as Hasher>::Domain>
type PrivateInputs = PrivateInputs<Tree>
type Proof = Proof<Tree::Proof>
type Requirements = NoRequirements
fn setup(sp: &Self::SetupParams) -> Result<Self::PublicParams>[src]
fn prove<'b>(
pub_params: &'b Self::PublicParams,
pub_inputs: &'b Self::PublicInputs,
priv_inputs: &'b Self::PrivateInputs
) -> Result<Self::Proof>[src]
pub_params: &'b Self::PublicParams,
pub_inputs: &'b Self::PublicInputs,
priv_inputs: &'b Self::PrivateInputs
) -> Result<Self::Proof>
fn verify(
pub_params: &Self::PublicParams,
pub_inputs: &Self::PublicInputs,
proof: &Self::Proof
) -> Result<bool>[src]
pub_params: &Self::PublicParams,
pub_inputs: &Self::PublicInputs,
proof: &Self::Proof
) -> Result<bool>
pub fn prove_all_partitions(
pub_params: &Self::PublicParams,
pub_in: &Self::PublicInputs,
priv_in: &Self::PrivateInputs,
partition_count: usize
) -> Result<Vec<Self::Proof, Global>, Error>[src]
pub_params: &Self::PublicParams,
pub_in: &Self::PublicInputs,
priv_in: &Self::PrivateInputs,
partition_count: usize
) -> Result<Vec<Self::Proof, Global>, Error>
pub fn verify_all_partitions(
pub_params: &Self::PublicParams,
pub_in: &Self::PublicInputs,
proofs: &[Self::Proof]
) -> Result<bool, Error>[src]
pub_params: &Self::PublicParams,
pub_in: &Self::PublicInputs,
proofs: &[Self::Proof]
) -> Result<bool, Error>
pub fn with_partition(
pub_in: Self::PublicInputs,
_k: Option<usize>
) -> Self::PublicInputs[src]
pub_in: Self::PublicInputs,
_k: Option<usize>
) -> Self::PublicInputs
pub fn satisfies_requirements(
_pub_params: &Self::PublicParams,
_requirements: &Self::Requirements,
_partitions: usize
) -> bool[src]
_pub_params: &Self::PublicParams,
_requirements: &Self::Requirements,
_partitions: usize
) -> bool
Auto Trait Implementations
impl<'a, Tree> RefUnwindSafe for ElectionPoSt<'a, Tree> where
Tree: RefUnwindSafe,
impl<'a, Tree> RefUnwindSafe for ElectionPoSt<'a, Tree> where
Tree: RefUnwindSafe, impl<'a, Tree> Send for ElectionPoSt<'a, Tree>
impl<'a, Tree> Send for ElectionPoSt<'a, Tree>impl<'a, Tree> Sync for ElectionPoSt<'a, Tree>
impl<'a, Tree> Sync for ElectionPoSt<'a, Tree>impl<'a, Tree> Unpin for ElectionPoSt<'a, Tree>
impl<'a, Tree> Unpin for ElectionPoSt<'a, Tree>impl<'a, Tree> UnwindSafe for ElectionPoSt<'a, Tree> where
Tree: RefUnwindSafe,
impl<'a, Tree> UnwindSafe for ElectionPoSt<'a, Tree> where
Tree: RefUnwindSafe,