[][src]Struct bbs::BlindSignatureContext

pub struct BlindSignatureContext {
    pub commitment: Commitment,
    pub challenge_hash: ProofChallenge,
    pub proof_of_hidden_messages: ProofG1,
}

Contains the data used for computing a blind signature and verifying proof of hidden messages from a prover

Fields

commitment: Commitment

The blinded signature commitment

challenge_hash: ProofChallenge

The challenge hash for the Fiat-Shamir heuristic

proof_of_hidden_messages: ProofG1

The proof for the hidden messages

Implementations

impl BlindSignatureContext[src]

pub fn verify(
    &self,
    revealed_messages: &BTreeSet<usize>,
    verkey: &PublicKey,
    nonce: &ProofNonce
) -> Result<bool, BBSError>
[src]

Assumes the proof of hidden messages If other proofs were included, those will need to be verified another way

Trait Implementations

impl Clone for BlindSignatureContext[src]

impl Debug for BlindSignatureContext[src]

impl<'a> Deserialize<'a> for BlindSignatureContext[src]

impl Serialize for BlindSignatureContext[src]

impl ToVariableLengthBytes for BlindSignatureContext[src]

type Output = Self

The type that implements this trait

type Error = BBSError

The type of error to return

impl<'_> TryFrom<&'_ [u8]> for BlindSignatureContext[src]

type Error = BBSError

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for BlindSignatureContext[src]

type Error = BBSError

The type returned in the event of a conversion error.

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