pub struct Parameters<E: Engine> {
pub vk: VerifyingKey<E>,
pub h: Arc<Vec<E::G1Affine>>,
pub l: Arc<Vec<E::G1Affine>>,
pub a: Arc<Vec<E::G1Affine>>,
pub b_g1: Arc<Vec<E::G1Affine>>,
pub b_g2: Arc<Vec<E::G2Affine>>,
}
Fields§
§vk: VerifyingKey<E>
§h: Arc<Vec<E::G1Affine>>
§l: Arc<Vec<E::G1Affine>>
§a: Arc<Vec<E::G1Affine>>
§b_g1: Arc<Vec<E::G1Affine>>
§b_g2: Arc<Vec<E::G2Affine>>
Implementations§
Trait Implementations§
Source§impl<E: Clone + Engine> Clone for Parameters<E>
impl<E: Clone + Engine> Clone for Parameters<E>
Source§fn clone(&self) -> Parameters<E>
fn clone(&self) -> Parameters<E>
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<'a, E: Engine> ParameterSource<E> for &'a Parameters<E>
impl<'a, E: Engine> ParameterSource<E> for &'a Parameters<E>
type G1Builder = (Arc<Vec<<E as Engine>::G1Affine>>, usize)
type G2Builder = (Arc<Vec<<E as Engine>::G2Affine>>, usize)
fn get_vk(&mut self, _: usize) -> Result<VerifyingKey<E>, SynthesisError>
fn get_h(&mut self, _: usize) -> Result<Self::G1Builder, SynthesisError>
fn get_l(&mut self, _: usize) -> Result<Self::G1Builder, SynthesisError>
fn get_a( &mut self, num_inputs: usize, _: usize, ) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
fn get_b_g1( &mut self, num_inputs: usize, _: usize, ) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
fn get_b_g2( &mut self, num_inputs: usize, _: usize, ) -> Result<(Self::G2Builder, Self::G2Builder), SynthesisError>
Source§impl<E: Engine> PartialEq for Parameters<E>
impl<E: Engine> PartialEq for Parameters<E>
Auto Trait Implementations§
impl<E> Freeze for Parameters<E>
impl<E> RefUnwindSafe for Parameters<E>
impl<E> Send for Parameters<E>
impl<E> Sync for Parameters<E>
impl<E> Unpin for Parameters<E>
impl<E> UnwindSafe for Parameters<E>where
<E as Engine>::G1Affine: UnwindSafe + RefUnwindSafe,
<E as Engine>::G2Affine: 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