Struct snarkvm_synthesizer::prelude::UniversalSRS
source · pub struct UniversalSRS<N>where
N: Network,{ /* private fields */ }
Implementations§
source§impl<N> UniversalSRS<N>where
N: Network,
impl<N> UniversalSRS<N>where N: Network,
sourcepub fn load() -> Result<UniversalSRS<N>, Error>
pub fn load() -> Result<UniversalSRS<N>, Error>
Initializes the universal SRS.
sourcepub fn to_circuit_key(
&self,
function_name: &str,
assignment: &Assignment<<N as Environment>::Field>
) -> Result<(ProvingKey<N>, VerifyingKey<N>), Error>
pub fn to_circuit_key( &self, function_name: &str, assignment: &Assignment<<N as Environment>::Field> ) -> Result<(ProvingKey<N>, VerifyingKey<N>), Error>
Returns the circuit proving and verifying key.
Methods from Deref<Target = UniversalParams<<N as Environment>::PairingCurve>>§
pub fn download_powers_for(&self, range: Range<usize>) -> Result<(), Error>
pub fn lagrange_basis( &self, domain: EvaluationDomain<<E as PairingEngine>::Fr> ) -> Result<Vec<<E as PairingEngine>::G1Affine>, Error>
pub fn power_of_beta_g( &self, index: usize ) -> Result<<E as PairingEngine>::G1Affine, Error>
pub fn powers_of_beta_g( &self, lower: usize, upper: usize ) -> Result<Vec<<E as PairingEngine>::G1Affine>, Error>
pub fn powers_of_beta_times_gamma_g( &self ) -> Arc<BTreeMap<usize, <E as PairingEngine>::G1Affine>>
pub fn beta_h(&self) -> <E as PairingEngine>::G2Affine
pub fn max_degree(&self) -> usize
pub fn to_universal_prover(&self) -> Result<UniversalProver<E>, Error>
pub fn to_universal_verifier(&self) -> Result<UniversalVerifier<E>, Error>
Trait Implementations§
source§impl<N> Clone for UniversalSRS<N>where
N: Clone + Network,
<N as Environment>::PairingCurve: Clone,
impl<N> Clone for UniversalSRS<N>where N: Clone + Network, <N as Environment>::PairingCurve: Clone,
source§fn clone(&self) -> UniversalSRS<N>
fn clone(&self) -> UniversalSRS<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> Deref for UniversalSRS<N>where
N: Network,
impl<N> Deref for UniversalSRS<N>where N: Network,
§type Target = UniversalParams<<N as Environment>::PairingCurve>
type Target = UniversalParams<<N as Environment>::PairingCurve>
The resulting type after dereferencing.
source§impl<N> FromBytes for UniversalSRS<N>where
N: Network,
impl<N> FromBytes for UniversalSRS<N>where N: Network,
Auto Trait Implementations§
impl<N> !RefUnwindSafe for UniversalSRS<N>
impl<N> Send for UniversalSRS<N>
impl<N> Sync for UniversalSRS<N>
impl<N> Unpin for UniversalSRS<N>
impl<N> !UnwindSafe for UniversalSRS<N>
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