[][src]Struct ps_sig::blind_signature::ProverCommittedSignatureGroup

pub struct ProverCommittedSignatureGroup { /* fields omitted */ }

Receive or generate challenge. Compute response and proof

Methods

impl ProverCommittedSignatureGroup[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

pub fn gen_challenge(&self, extra: Vec<u8>) -> FieldElement[src]

This step will be done by the main protocol for which this PoK is a sub-protocol

pub fn gen_proof(
    self,
    challenge: &FieldElement,
    secrets: &[FieldElement]
) -> Result<ProofSignatureGroup, PSError>
[src]

For each secret, generate a response as self.blinding[i] - challenge*secrets[i].

Trait Implementations

impl Clone for ProverCommittedSignatureGroup[src]

impl Debug for ProverCommittedSignatureGroup[src]

impl<'de> Deserialize<'de> for ProverCommittedSignatureGroup[src]

impl Serialize for ProverCommittedSignatureGroup[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> DeserializeOwned for T where
    T: 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>,