pub struct ProvingKey {
pub num_variables: usize,
pub num_constraints: usize,
pub num_public_inputs: usize,
pub circuit_hash: Hash256,
}Expand description
A proving key derived from the circuit structure.
Fields§
§num_variables: usizeNumber of variables in the circuit.
num_constraints: usizeNumber of constraints.
num_public_inputs: usizeNumber of public inputs.
circuit_hash: Hash256Circuit fingerprint (hash of the constraint structure).
Trait Implementations§
Source§impl Clone for ProvingKey
impl Clone for ProvingKey
Source§fn clone(&self) -> ProvingKey
fn clone(&self) -> ProvingKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvingKey
impl Debug for ProvingKey
Source§impl<'de> Deserialize<'de> for ProvingKey
impl<'de> Deserialize<'de> for ProvingKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProvingKey
impl RefUnwindSafe for ProvingKey
impl Send for ProvingKey
impl Sync for ProvingKey
impl Unpin for ProvingKey
impl UnsafeUnpin for ProvingKey
impl UnwindSafe for ProvingKey
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