pub struct PreparedUserSecretKey<E: Pairing>(pub Proof<E>, pub E::G2Prepared);Expand description
User’s secret key with precomputation
Tuple Fields§
§0: Proof<E>(usk, usk_hat)
1: E::G2Preparedusk_hat prepared
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for PreparedUserSecretKey<E>
impl<E: Pairing> CanonicalDeserialize for PreparedUserSecretKey<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 PreparedUserSecretKey<E>
impl<E: Pairing> CanonicalSerialize for PreparedUserSecretKey<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 PreparedUserSecretKey<E>where
E::G2Prepared: Clone,
impl<E: Clone + Pairing> Clone for PreparedUserSecretKey<E>where
E::G2Prepared: Clone,
Source§fn clone(&self) -> PreparedUserSecretKey<E>
fn clone(&self) -> PreparedUserSecretKey<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: Debug + Pairing> Debug for PreparedUserSecretKey<E>where
E::G2Prepared: Debug,
impl<E: Debug + Pairing> Debug for PreparedUserSecretKey<E>where
E::G2Prepared: Debug,
Source§impl<E: Pairing> From<&UserSecretKey<E>> for PreparedUserSecretKey<E>
impl<E: Pairing> From<&UserSecretKey<E>> for PreparedUserSecretKey<E>
Source§fn from(sk: &UserSecretKey<E>) -> Self
fn from(sk: &UserSecretKey<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq + Pairing> PartialEq for PreparedUserSecretKey<E>where
E::G2Prepared: PartialEq,
impl<E: PartialEq + Pairing> PartialEq for PreparedUserSecretKey<E>where
E::G2Prepared: PartialEq,
Source§impl<E: Pairing> Valid for PreparedUserSecretKey<E>
impl<E: Pairing> Valid for PreparedUserSecretKey<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 PreparedUserSecretKey<E>where
E::G2Prepared: Eq,
impl<E: Pairing> StructuralPartialEq for PreparedUserSecretKey<E>
Auto Trait Implementations§
impl<E> Freeze for PreparedUserSecretKey<E>
impl<E> RefUnwindSafe for PreparedUserSecretKey<E>where
<E as Pairing>::G2Prepared: RefUnwindSafe,
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::G2Affine: RefUnwindSafe,
impl<E> Send for PreparedUserSecretKey<E>
impl<E> Sync for PreparedUserSecretKey<E>
impl<E> Unpin for PreparedUserSecretKey<E>
impl<E> UnwindSafe for PreparedUserSecretKey<E>where
<E as Pairing>::G2Prepared: UnwindSafe,
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::G2Affine: 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