pub struct ProverCommittedG1 { /* private fields */ }
Expand description
Receive or generate challenge. Compute response and proof
Implementations§
Source§impl ProverCommittedG1
impl ProverCommittedG1
Sourcepub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Convert the committed values to a byte array. Use for generating the fiat-shamir challenge
Sourcepub fn gen_challenge<I: AsRef<[u8]>>(&self, extra: I) -> ProofChallenge
pub fn gen_challenge<I: AsRef<[u8]>>(&self, extra: I) -> ProofChallenge
This step will be done by the main protocol for which this PoK is a sub-protocol
Sourcepub fn gen_proof(
self,
challenge: &ProofChallenge,
secrets: &[SignatureMessage],
) -> Result<ProofG1, BBSError>
pub fn gen_proof( self, challenge: &ProofChallenge, secrets: &[SignatureMessage], ) -> Result<ProofG1, BBSError>
For each secret, generate a response as self.blinding[i] - challenge*secrets[i].
Trait Implementations§
Source§impl Clone for ProverCommittedG1
impl Clone for ProverCommittedG1
Source§fn clone(&self) -> ProverCommittedG1
fn clone(&self) -> ProverCommittedG1
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProverCommittedG1
impl RefUnwindSafe for ProverCommittedG1
impl Send for ProverCommittedG1
impl Sync for ProverCommittedG1
impl Unpin for ProverCommittedG1
impl UnwindSafe for ProverCommittedG1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more