[−][src]Struct bbs::BlindSignatureContext
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
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]
&self,
revealed_messages: &BTreeSet<usize>,
verkey: &PublicKey,
nonce: &ProofNonce
) -> Result<bool, BBSError>
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]
fn clone(&self) -> BlindSignatureContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BlindSignatureContext
[src]
impl<'a> Deserialize<'a> for BlindSignatureContext
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
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
fn to_bytes_compressed_form(&self) -> Vec<u8>
[src]
fn from_bytes_compressed_form<I: AsRef<[u8]>>(
data: I
) -> Result<Self::Output, Self::Error>
[src]
data: I
) -> Result<Self::Output, Self::Error>
fn to_bytes_uncompressed_form(&self) -> Vec<u8>
[src]
fn from_bytes_uncompressed_form<I: AsRef<[u8]>>(
data: I
) -> Result<Self::Output, Self::Error>
[src]
data: I
) -> Result<Self::Output, Self::Error>
impl<'_> TryFrom<&'_ [u8]> for BlindSignatureContext
[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 BlindSignatureContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlindSignatureContext
impl Send for BlindSignatureContext
impl Sync for BlindSignatureContext
impl Unpin for BlindSignatureContext
impl UnwindSafe for BlindSignatureContext
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, 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>,