[−][src]Struct bls_amcl::simple::Signature
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]
msgs_sigs: Vec<(&[u8], &Signature, &VerKey)>,
params: &Params
) -> bool
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]
msgs_sigs: Vec<(&[u8], &Signature, &VerKey)>,
params: &Params
) -> bool
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Signature
[src]
Auto Trait Implementations
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
impl RefUnwindSafe for Signature
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,