Struct snarkvm_synthesizer_snark::ProvingKey
source · pub struct ProvingKey<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> ProvingKey<N>
impl<N: Network> ProvingKey<N>
sourcepub const fn new(
proving_key: Arc<CircuitProvingKey<N::PairingCurve, MarlinHidingMode>>
) -> Self
pub const fn new( proving_key: Arc<CircuitProvingKey<N::PairingCurve, MarlinHidingMode>> ) -> Self
Initializes a new proving key.
Trait Implementations§
source§impl<N: Clone + Network> Clone for ProvingKey<N>where
N::PairingCurve: Clone,
impl<N: Clone + Network> Clone for ProvingKey<N>where N::PairingCurve: Clone,
source§fn clone(&self) -> ProvingKey<N>
fn clone(&self) -> ProvingKey<N>
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<N: Network> Debug for ProvingKey<N>
impl<N: Network> Debug for ProvingKey<N>
source§impl<N: Network> Deref for ProvingKey<N>
impl<N: Network> Deref for ProvingKey<N>
§type Target = CircuitProvingKey<<N as Environment>::PairingCurve, MarlinHidingMode>
type Target = CircuitProvingKey<<N as Environment>::PairingCurve, MarlinHidingMode>
The resulting type after dereferencing.
source§impl<'de, N: Network> Deserialize<'de> for ProvingKey<N>
impl<'de, N: Network> Deserialize<'de> for ProvingKey<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the proving key from a string or bytes.
source§impl<N: Network> Display for ProvingKey<N>
impl<N: Network> Display for ProvingKey<N>
source§impl<N: Network> FromBytes for ProvingKey<N>
impl<N: Network> FromBytes for ProvingKey<N>
source§impl<N: Network> FromStr for ProvingKey<N>
impl<N: Network> FromStr for ProvingKey<N>
source§impl<N: Network> Parser for ProvingKey<N>
impl<N: Network> Parser for ProvingKey<N>
source§impl<N: Network> Serialize for ProvingKey<N>
impl<N: Network> Serialize for ProvingKey<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for ProvingKey<N>where <N as Environment>::Field: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G2Affine: RefUnwindSafe, <<<N as Environment>::PairingCurve as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<N> Send for ProvingKey<N>
impl<N> Sync for ProvingKey<N>
impl<N> Unpin for ProvingKey<N>
impl<N> UnwindSafe for ProvingKey<N>where <N as Environment>::Field: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G2Affine: RefUnwindSafe, <<<N as Environment>::PairingCurve as PairingEngine>::G2Affine as PairingCurve>::Prepared: 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