[−][src]Struct bbs::signature::BlindSignature
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]
commitment: &Commitment,
messages: &BTreeMap<usize, SignatureMessage>,
signkey: &SecretKey,
verkey: &PublicKey
) -> Result<Self, BBSError>
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]
fn clone(&self) -> BlindSignature
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BlindSignature
[src]
impl Debug for BlindSignature
[src]
impl Default for BlindSignature
[src]
impl<'a> Deserialize<'a> for BlindSignature
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
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]
fn eq(&self, other: &BlindSignature) -> bool
[src]
fn ne(&self, other: &BlindSignature) -> bool
[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.
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<Vec<u8>> for BlindSignature
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlindSignature
impl Send for BlindSignature
impl Sync for BlindSignature
impl Unpin for BlindSignature
impl UnwindSafe for BlindSignature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,