Struct signature_bbs_plus::BlindSignatureContext[][src]

pub struct BlindSignatureContext {
    pub commitment: Commitment,
    pub challenge: Challenge,
    pub proofs: Vec<Challenge, U16>,
}

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: Challenge

The challenge hash for the Fiat-Shamir heuristic

proofs: Vec<Challenge, U16>

The proofs for the hidden messages

Implementations

impl BlindSignatureContext[src]

pub fn to_bytes(&self, buffer: &mut [u8])[src]

Store the generators as a sequence of bytes Each point is compressed to big-endian format Needs (N + 1) * 32 + 48 * 2 space otherwise it will panic

pub fn from_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self>[src]

Convert a byte sequence into the blind signature context Expected size is (N + 1) * 32 + 48 bytes

pub fn verify(
    &self,
    known_messages: &[usize],
    generators: &MessageGenerators,
    nonce: Nonce
) -> Result<bool, Error>
[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<'de> Deserialize<'de> for BlindSignatureContext[src]

impl Serialize for BlindSignatureContext[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> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

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

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.