[][src]Struct bbs::signature::BlindSignature

pub struct BlindSignature { /* fields omitted */ }

A BBS+ blind signature structurally identical to Signature but is used to help with misuse and confusion.

Implementations

impl BlindSignature[src]

pub fn new(
    commitment: &Commitment,
    messages: &BTreeMap<usize, SignatureMessage>,
    signkey: &SecretKey,
    verkey: &PublicKey
) -> Result<Self, BBSError>
[src]

1 or more messages have been hidden by the signature recipient. The remaining known messages are in messages. The generator to which they correspond is in message_indices.

commitment: h0s * h[i]mi messages: Messages to be signed where each value is 0 < m ≤ r and the key is the index in the public.h to which is used as base signkey: The secret key for signing verkey: The corresponding public key to secret key

pub fn to_unblinded(&self, blinding: &SignatureBlinding) -> Signature[src]

Once signature on committed attributes (blind signature) is received, the signature needs to be unblinded. Takes the blinding factor used in the commitment.

pub fn to_bytes_compressed_form(&self) -> [u8; 112][src]

Convert to raw bytes form

pub fn to_bytes_uncompressed_form(&self) -> [u8; 160][src]

Convert to raw bytes form

Trait Implementations

impl Clone for BlindSignature[src]

impl Copy for BlindSignature[src]

impl Debug for BlindSignature[src]

impl Default for BlindSignature[src]

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

impl Display for BlindSignature[src]

impl Eq for BlindSignature[src]

impl<'_> From<&'_ [u8; 112]> for BlindSignature[src]

impl<'_> From<&'_ [u8; 160]> for BlindSignature[src]

impl From<[u8; 112]> for BlindSignature[src]

impl From<[u8; 160]> for BlindSignature[src]

impl From<Box<[u8]>> for BlindSignature[src]

impl Into<Box<[u8]>> for BlindSignature[src]

impl PartialEq<BlindSignature> for BlindSignature[src]

impl Serialize for BlindSignature[src]

impl StructuralEq for BlindSignature[src]

impl StructuralPartialEq for BlindSignature[src]

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

type Error = BBSError

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for BlindSignature[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> ToString for T where
    T: Display + ?Sized
[src]

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