[−][src]Struct bls_like::single::Signature
Detached BLS Signature
Methods
impl<E: EngineBLS> Signature<E>
[src]
pub fn compress(
&self
) -> <<<E as EngineBLS>::SignatureGroup as CurveProjective>::Affine as CurveAffine>::Compressed
[src]
&self
) -> <<<E as EngineBLS>::SignatureGroup as CurveProjective>::Affine as CurveAffine>::Compressed
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>::SignatureGroup as CurveProjective>::Affine as CurveAffine>::Compressed
) -> Result<Self, GroupDecodingError>
[src]
compressed: <<<E as EngineBLS>::SignatureGroup as CurveProjective>::Affine as CurveAffine>::Compressed
) -> Result<Self, GroupDecodingError>
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 Signature<UsualBLS<Bls12>>
[src]
pub fn to_bytes(&self) -> [u8; 96]
[src]
pub fn from_bytes(bytes: [u8; 96]) -> Result<Self, GroupDecodingError>
[src]
impl Signature<TinyBLS<Bls12>>
[src]
pub fn to_bytes(&self) -> [u8; 48]
[src]
pub fn from_bytes(bytes: [u8; 48]) -> Result<Self, GroupDecodingError>
[src]
impl<E: EngineBLS> Signature<E>
[src]
pub fn verify(&self, message: Message, publickey: &PublicKey<E>) -> bool
[src]
Verify a single BLS signature
Trait Implementations
impl<E: EngineBLS> Clone for Signature<E>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E: EngineBLS> Eq for Signature<E>
[src]
impl<E: EngineBLS> Copy for Signature<E>
[src]
impl<E: EngineBLS> PartialEq<Signature<E>> for Signature<E>
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<E: Debug + EngineBLS> Debug for Signature<E> where
E::SignatureGroup: Debug,
[src]
E::SignatureGroup: Debug,
Auto Trait Implementations
impl<E> Sync for Signature<E> where
<E as EngineBLS>::SignatureGroup: Sync,
<E as EngineBLS>::SignatureGroup: Sync,
impl<E> Unpin for Signature<E> where
<E as EngineBLS>::SignatureGroup: Unpin,
<E as EngineBLS>::SignatureGroup: Unpin,
impl<E> Send for Signature<E> where
<E as EngineBLS>::SignatureGroup: Send,
<E as EngineBLS>::SignatureGroup: Send,
impl<E> UnwindSafe for Signature<E> where
<E as EngineBLS>::SignatureGroup: UnwindSafe,
<E as EngineBLS>::SignatureGroup: UnwindSafe,
impl<E> RefUnwindSafe for Signature<E> where
<E as EngineBLS>::SignatureGroup: RefUnwindSafe,
<E as EngineBLS>::SignatureGroup: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self