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