[−][src]Struct ysbell::groth16::Parameters
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
impl<E: Engine> Parameters<E>
[src]
pub fn write<W: Write>(&self, writer: W) -> Result<()>
[src]
pub fn build_mapped_parameters(
param_file_path: PathBuf,
checked: bool
) -> Result<MappedParameters<E>>
[src]
param_file_path: PathBuf,
checked: bool
) -> Result<MappedParameters<E>>
pub fn read_mmap(mmap: &Mmap, checked: bool) -> Result<Self>
[src]
pub fn read<R: Read>(reader: R, checked: bool) -> Result<Self>
[src]
Trait Implementations
impl<E: Clone + Engine> Clone for Parameters<E> where
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G2Affine: Clone,
[src]
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G1Affine: Clone,
E::G2Affine: Clone,
pub fn clone(&self) -> Parameters<E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, E: Engine> ParameterSource<E> for &'a Parameters<E>
[src]
type G1Builder = (Arc<Vec<E::G1Affine>>, usize)
type G2Builder = (Arc<Vec<E::G2Affine>>, usize)
pub fn get_vk(&self, _: usize) -> Result<&VerifyingKey<E>, SynthesisError>
[src]
pub fn get_h(&self, _: usize) -> Result<Self::G1Builder, SynthesisError>
[src]
pub fn get_l(&self, _: usize) -> Result<Self::G1Builder, SynthesisError>
[src]
pub fn get_a(
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
[src]
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
pub fn get_b_g1(
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
[src]
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G1Builder, Self::G1Builder), SynthesisError>
pub fn get_b_g2(
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G2Builder, Self::G2Builder), SynthesisError>
[src]
&self,
num_inputs: usize,
_: usize
) -> Result<(Self::G2Builder, Self::G2Builder), SynthesisError>
impl<E: Engine> PartialEq<Parameters<E>> for Parameters<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for Parameters<E> where
<E as Engine>::G1Affine: RefUnwindSafe,
<E as Engine>::G2Affine: RefUnwindSafe,
[src]
<E as Engine>::G1Affine: RefUnwindSafe,
<E as Engine>::G2Affine: RefUnwindSafe,
impl<E> Send for Parameters<E> where
<E as Engine>::G1Affine: Send + Sync,
<E as Engine>::G2Affine: Send + Sync,
[src]
<E as Engine>::G1Affine: Send + Sync,
<E as Engine>::G2Affine: Send + Sync,
impl<E> Sync for Parameters<E> where
<E as Engine>::G1Affine: Send + Sync,
<E as Engine>::G2Affine: Send + Sync,
[src]
<E as Engine>::G1Affine: Send + Sync,
<E as Engine>::G2Affine: Send + Sync,
impl<E> Unpin for Parameters<E> where
<E as Engine>::G1Affine: Unpin,
<E as Engine>::G2Affine: Unpin,
[src]
<E as Engine>::G1Affine: Unpin,
<E as Engine>::G2Affine: Unpin,
impl<E> UnwindSafe for Parameters<E> where
<E as Engine>::G1Affine: RefUnwindSafe + UnwindSafe,
<E as Engine>::G2Affine: RefUnwindSafe + UnwindSafe,
[src]
<E as Engine>::G1Affine: RefUnwindSafe + UnwindSafe,
<E as Engine>::G2Affine: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,