[][src]Struct bls_amcl::simple::Signature

pub struct Signature {
    pub point: SignatureGroup,
}

Fields

point: SignatureGroup

Methods

impl Signature[src]

pub fn new(msg: &[u8], sig_key: &SigKey) -> Self[src]

pub fn verify(&self, msg: &[u8], ver_key: &VerKey, params: &Params) -> bool[src]

pub fn batch_verify(
    msgs_sigs: Vec<(&[u8], &Signature, &VerKey)>,
    params: &Params
) -> bool
[src]

Batch verification of signatures. Takes a vector of 3-tuple where each tuple has a message, signature and public key. Messages can be same or different

pub fn batch_verify_distinct_msgs(
    msgs_sigs: Vec<(&[u8], &Signature, &VerKey)>,
    params: &Params
) -> bool
[src]

Batch verification of signatures. Takes a vector of 3-tuple where each tuple has a message, signature and public key. Assumes all messages to be distinct

pub fn from_bytes(sig_bytes: &[u8]) -> Result<Signature, SerzDeserzError>[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

Trait Implementations

impl AsRef<Signature> for Signature[src]

impl AsRef<Signature> for (Signature, VerKey)[src]

impl AsRef<Signature> for (VerKey, Signature)[src]

impl Clone for Signature[src]

impl PartialEq<Signature> for Signature[src]

impl Debug for Signature[src]

impl StructuralPartialEq for Signature[src]

impl<'de> Deserialize<'de> for Signature[src]

impl Serialize for Signature[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,