[][src]Struct bls_signature_aggregator::proof::Proof

pub struct Proof {
    pub public_key: PublicKey,
    pub signature: Signature,
}

Proof that a quorum of the section elders has agreed on something.

Fields

public_key: PublicKey

The BLS public key.

signature: Signature

The BLS signature corresponding to the public key.

Implementations

impl Proof[src]

pub fn verify(&self, payload: &[u8]) -> bool[src]

Verifies this proof against the payload.

Trait Implementations

impl Clone for Proof[src]

impl Debug for Proof[src]

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

impl Eq for Proof[src]

impl Hash for Proof[src]

impl Ord for Proof[src]

impl PartialEq<Proof> for Proof[src]

impl PartialOrd<Proof> for Proof[src]

impl Serialize for Proof[src]

impl StructuralEq for Proof[src]

impl StructuralPartialEq for Proof[src]

Auto Trait Implementations

impl RefUnwindSafe for Proof

impl Send for Proof

impl Sync for Proof

impl Unpin for Proof

impl UnwindSafe for Proof

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,