pub struct PublicKey<E: Pairing> {
pub alpha_tilde: E::G2Affine,
pub beta: Vec<E::G1Affine>,
pub beta_tilde: Vec<E::G2Affine>,
}Expand description
PublicKey used in the modified Pointcheval-Sanders signature scheme and PoKs.
Fields§
§alpha_tilde: E::G2Affine§beta: Vec<E::G1Affine>§beta_tilde: Vec<E::G2Affine>Implementations§
Source§impl<E: Pairing> PublicKey<E>
impl<E: Pairing> PublicKey<E>
Sourcepub fn new(_: &SecretKey<E::ScalarField>, _: &SignatureParams<E>) -> Self
pub fn new(_: &SecretKey<E::ScalarField>, _: &SignatureParams<E>) -> Self
Derives PublicKey from supplied secret key and params.
Sourcepub fn supported_message_count(&self) -> usize
pub fn supported_message_count(&self) -> usize
Returns max amount of messages supported by this public key.
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for PublicKey<E>
impl<E: Pairing> CanonicalDeserialize for PublicKey<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 PublicKey<E>
impl<E: Pairing> CanonicalSerialize for PublicKey<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<'de, E: Pairing> Deserialize<'de> for PublicKey<E>
impl<'de, E: Pairing> Deserialize<'de> for PublicKey<E>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Pairing> Valid for PublicKey<E>
impl<E: Pairing> Valid for PublicKey<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 PublicKey<E>
impl<E: Pairing> StructuralPartialEq for PublicKey<E>
Auto Trait Implementations§
impl<E> Freeze for PublicKey<E>
impl<E> RefUnwindSafe for PublicKey<E>
impl<E> Send for PublicKey<E>
impl<E> Sync for PublicKey<E>
impl<E> Unpin for PublicKey<E>
impl<E> UnwindSafe for PublicKey<E>
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