Struct snarkvm_algorithms::snark::marlin::CircuitProvingKey
source · pub struct CircuitProvingKey<E: PairingEngine, MM: MarlinMode> {
pub circuit_verifying_key: CircuitVerifyingKey<E>,
pub circuit_commitment_randomness: Vec<Randomness<E>>,
pub circuit: Arc<Circuit<E::Fr, MM>>,
pub committer_key: Arc<CommitterKey<E>>,
}
Expand description
Proving key for a specific circuit (i.e., R1CS matrices).
Fields§
§circuit_verifying_key: CircuitVerifyingKey<E>
The circuit verifying key.
circuit_commitment_randomness: Vec<Randomness<E>>
The randomness for the circuit polynomial commitments.
circuit: Arc<Circuit<E::Fr, MM>>
The circuit itself.
committer_key: Arc<CommitterKey<E>>
The committer key for this index, trimmed from the universal SRS.
Trait Implementations§
source§impl<E: Clone + PairingEngine, MM: Clone + MarlinMode> Clone for CircuitProvingKey<E, MM>where
E::Fr: Clone,
impl<E: Clone + PairingEngine, MM: Clone + MarlinMode> Clone for CircuitProvingKey<E, MM>where E::Fr: Clone,
source§fn clone(&self) -> CircuitProvingKey<E, MM>
fn clone(&self) -> CircuitProvingKey<E, MM>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug + PairingEngine, MM: Debug + MarlinMode> Debug for CircuitProvingKey<E, MM>where
E::Fr: Debug,
impl<E: Debug + PairingEngine, MM: Debug + MarlinMode> Debug for CircuitProvingKey<E, MM>where E::Fr: Debug,
source§impl<E: PairingEngine, MM: MarlinMode> FromBytes for CircuitProvingKey<E, MM>
impl<E: PairingEngine, MM: MarlinMode> FromBytes for CircuitProvingKey<E, MM>
source§impl<E: PairingEngine, MM: MarlinMode> Ord for CircuitProvingKey<E, MM>
impl<E: PairingEngine, MM: MarlinMode> Ord for CircuitProvingKey<E, MM>
source§impl<E: PartialEq + PairingEngine, MM: PartialEq + MarlinMode> PartialEq<CircuitProvingKey<E, MM>> for CircuitProvingKey<E, MM>where
E::Fr: PartialEq,
impl<E: PartialEq + PairingEngine, MM: PartialEq + MarlinMode> PartialEq<CircuitProvingKey<E, MM>> for CircuitProvingKey<E, MM>where E::Fr: PartialEq,
source§fn eq(&self, other: &CircuitProvingKey<E, MM>) -> bool
fn eq(&self, other: &CircuitProvingKey<E, MM>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E: PairingEngine, MM: MarlinMode> PartialOrd<CircuitProvingKey<E, MM>> for CircuitProvingKey<E, MM>
impl<E: PairingEngine, MM: MarlinMode> PartialOrd<CircuitProvingKey<E, MM>> for CircuitProvingKey<E, MM>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<E: PairingEngine, MM: MarlinMode> ToBytes for CircuitProvingKey<E, MM>
impl<E: PairingEngine, MM: MarlinMode> ToBytes for CircuitProvingKey<E, MM>
impl<E: Eq + PairingEngine, MM: Eq + MarlinMode> Eq for CircuitProvingKey<E, MM>where E::Fr: Eq,
impl<E: PairingEngine, MM: MarlinMode> StructuralEq for CircuitProvingKey<E, MM>
impl<E: PairingEngine, MM: MarlinMode> StructuralPartialEq for CircuitProvingKey<E, MM>
Auto Trait Implementations§
impl<E, MM> RefUnwindSafe for CircuitProvingKey<E, MM>where MM: RefUnwindSafe, <E as PairingEngine>::Fr: RefUnwindSafe, <E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E, MM> Send for CircuitProvingKey<E, MM>
impl<E, MM> Sync for CircuitProvingKey<E, MM>
impl<E, MM> Unpin for CircuitProvingKey<E, MM>where <E as PairingEngine>::Fr: Unpin, <E as PairingEngine>::G1Affine: Unpin,
impl<E, MM> UnwindSafe for CircuitProvingKey<E, MM>where MM: RefUnwindSafe, <E as PairingEngine>::Fr: UnwindSafe + RefUnwindSafe, <E as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.