[][src]Struct bls_signature_aggregator::proof::ProofShare

pub struct ProofShare {
    pub public_key_set: PublicKeySet,
    pub index: usize,
    pub signature_share: SignatureShare,
}

Single share of Proof.

Fields

public_key_set: PublicKeySet

BLS public key set.

index: usize

Index of the node that created this proof share.

signature_share: SignatureShare

BLS signature share corresponding to the index-th public key share of the public key set.

Implementations

impl ProofShare[src]

pub fn new(
    public_key_set: PublicKeySet,
    index: usize,
    secret_key_share: &SecretKeyShare,
    payload: &[u8]
) -> Self
[src]

Creates new proof share.

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

Verifies this proof share against the payload.

Trait Implementations

impl Clone for ProofShare[src]

impl Debug for ProofShare[src]

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

impl Eq for ProofShare[src]

impl Hash for ProofShare[src]

impl Ord for ProofShare[src]

impl PartialEq<ProofShare> for ProofShare[src]

impl PartialOrd<ProofShare> for ProofShare[src]

impl Serialize for ProofShare[src]

impl StructuralEq for ProofShare[src]

impl StructuralPartialEq for ProofShare[src]

Auto Trait Implementations

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>,