[][src]Struct coconut_sig::signature::Signature

pub struct Signature {
    pub sigma_1: SignatureGroup,
    pub sigma_2: SignatureGroup,
}

Result of the unblinding of the blind signature. Is in the form of PS signature.

Fields

sigma_1: SignatureGroupsigma_2: SignatureGroup

Methods

impl Signature[src]

pub fn aggregate(threshold: usize, sigs: Vec<(usize, Signature)>) -> Signature[src]

Create an aggregated signature from signatures from various signers. "AggCred" from paper.

pub fn verify(
    &self,
    messages: Vec<FieldElement>,
    vk: &Verkey,
    params: &Params
) -> bool
[src]

Verify a signature. Can verify unblinded sig received from a signer and the aggregate sig as well.

Trait Implementations

impl Clone for Signature[src]

impl Debug for Signature[src]

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

impl Serialize for Signature[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: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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