[][src]Struct bls_like::single::PublicKey

pub struct PublicKey<E: EngineBLS>(pub E::PublicKeyGroup);

BLS Public Key

Methods

impl<E: EngineBLS> PublicKey<E>[src]

pub fn compress(
    &self
) -> <<<E as EngineBLS>::PublicKeyGroup as CurveProjective>::Affine as CurveAffine>::Compressed
[src]

Convert our signature or public key type to its compressed form.

These compressed forms are wraper types on either a [u8; 48] or [u8; 96] which satisfy pairing::EncodedPoint and permit read access with AsRef<[u8]>.

pub fn decompress(
    compressed: <<<E as EngineBLS>::PublicKeyGroup as CurveProjective>::Affine as CurveAffine>::Compressed
) -> Result<Self, GroupDecodingError>
[src]

Decompress our signature or public key type from its compressed form.

These compressed forms are wraper types on either a [u8; 48] or [u8; 96] which satisfy pairing::EncodedPoint and permit creation and write access with pairing::EncodedPoint::empty() and AsMef<[u8]>, respectively.

pub fn decompress_from_slice(slice: &[u8]) -> Result<Self, GroupDecodingError>[src]

impl PublicKey<UsualBLS<Bls12>>[src]

pub fn to_bytes(&self) -> [u8; 48][src]

pub fn from_bytes(bytes: [u8; 48]) -> Result<Self, GroupDecodingError>[src]

impl PublicKey<TinyBLS<Bls12>>[src]

pub fn to_bytes(&self) -> [u8; 96][src]

pub fn from_bytes(bytes: [u8; 96]) -> Result<Self, GroupDecodingError>[src]

impl<E: EngineBLS> PublicKey<E>[src]

pub fn verify(&self, message: Message, signature: &Signature<E>) -> bool[src]

Trait Implementations

impl<E: EngineBLS> PartialEq<PublicKey<E>> for PublicKey<E>[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<E: EngineBLS> Copy for PublicKey<E>[src]

impl<E: EngineBLS> Eq for PublicKey<E>[src]

impl<E: EngineBLS> Clone for PublicKey<E>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<E: Debug + EngineBLS> Debug for PublicKey<E> where
    E::PublicKeyGroup: Debug
[src]

Auto Trait Implementations

impl<E> Send for PublicKey<E> where
    <E as EngineBLS>::PublicKeyGroup: Send

impl<E> Unpin for PublicKey<E> where
    <E as EngineBLS>::PublicKeyGroup: Unpin

impl<E> Sync for PublicKey<E> where
    <E as EngineBLS>::PublicKeyGroup: Sync

impl<E> UnwindSafe for PublicKey<E> where
    <E as EngineBLS>::PublicKeyGroup: UnwindSafe

impl<E> RefUnwindSafe for PublicKey<E> where
    <E as EngineBLS>::PublicKeyGroup: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self