pub struct PreparedSetupParams<E: Pairing> {
pub g: E::G1Affine,
pub g_hat: E::G2Affine,
pub g_hat_prepared: E::G2Prepared,
pub pairing: PairingOutput<E>,
}Expand description
System parameters with precomputation
Fields§
§g: E::G1Affine§g_hat: E::G2Affine§g_hat_prepared: E::G2Prepared§pairing: PairingOutput<E>e(g, g_hat)
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for PreparedSetupParams<E>
impl<E: Pairing> CanonicalDeserialize for PreparedSetupParams<E>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<E: Pairing> CanonicalSerialize for PreparedSetupParams<E>
impl<E: Pairing> CanonicalSerialize for PreparedSetupParams<E>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<E: Clone + Pairing> Clone for PreparedSetupParams<E>
impl<E: Clone + Pairing> Clone for PreparedSetupParams<E>
Source§fn clone(&self) -> PreparedSetupParams<E>
fn clone(&self) -> PreparedSetupParams<E>
Returns a duplicate 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<E: Pairing> From<SetupParams<E>> for PreparedSetupParams<E>
impl<E: Pairing> From<SetupParams<E>> for PreparedSetupParams<E>
Source§fn from(params: SetupParams<E>) -> Self
fn from(params: SetupParams<E>) -> Self
Converts to this type from the input type.
Source§impl<E: Pairing> Valid for PreparedSetupParams<E>
impl<E: Pairing> Valid for PreparedSetupParams<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl<E: Eq + Pairing> Eq for PreparedSetupParams<E>
impl<E: Pairing> StructuralPartialEq for PreparedSetupParams<E>
Auto Trait Implementations§
impl<E> Freeze for PreparedSetupParams<E>
impl<E> RefUnwindSafe for PreparedSetupParams<E>where
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::G2Affine: RefUnwindSafe,
<E as Pairing>::G2Prepared: RefUnwindSafe,
<E as Pairing>::TargetField: RefUnwindSafe,
impl<E> Send for PreparedSetupParams<E>
impl<E> Sync for PreparedSetupParams<E>
impl<E> Unpin for PreparedSetupParams<E>
impl<E> UnwindSafe for PreparedSetupParams<E>where
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::G2Affine: UnwindSafe,
<E as Pairing>::G2Prepared: UnwindSafe,
<E as Pairing>::TargetField: UnwindSafe,
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