[][src]Struct bbs::pok_vc::ProofG1

pub struct ProofG1 { /* fields omitted */ }

A proof of knowledge of a signature and hidden messages

Implementations

impl ProofG1[src]

pub fn get_challenge_contribution(
    &self,
    bases: &[GeneratorG1],
    commitment: &Commitment,
    challenge: &ProofChallenge
) -> Result<GeneratorG1, PoKVCError>
[src]

Computes the piece that goes into verifying the overall proof component by computing the c == H(U || \widehat{U} || nonce) This returns the \widehat{U} commitment is U

pub fn verify(
    &self,
    bases: &[GeneratorG1],
    commitment: &Commitment,
    challenge: &ProofChallenge
) -> Result<bool, PoKVCError>
[src]

Verify that bases[0]^responses[0] * bases[0]^responses[0] * ... bases[i]^responses[i] * commitment^challenge == random_commitment

pub fn verify_complete_proof(
    &self,
    bases: &[GeneratorG1],
    commitment: &Commitment,
    challenge: &ProofChallenge,
    nonce: &[u8]
) -> Result<bool, PoKVCError>
[src]

Assumes this is the entire proof and is not a sub proof Used primarily during 2-PC signature creation

Trait Implementations

impl Clone for ProofG1[src]

impl Debug for ProofG1[src]

impl Default for ProofG1[src]

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

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

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

impl Serialize for ProofG1[src]

impl ToVariableLengthBytes for ProofG1[src]

type Output = ProofG1

The type that implements this trait

type Error = PoKVCError

The type of error to return

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

type Error = PoKVCError

The type returned in the event of a conversion error.

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

type Error = PoKVCError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for ProofG1

impl Send for ProofG1

impl Sync for ProofG1

impl Unpin for ProofG1

impl UnwindSafe for ProofG1

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