pub struct SchnorrProof;Expand description
Schnorr proof implementation.
Proves knowledge of discrete logarithm x such that X = x * G.
Trait Implementations§
Source§impl SigmaProtocol for SchnorrProof
impl SigmaProtocol for SchnorrProof
Source§type Statement = SchnorrStatement
type Statement = SchnorrStatement
The public statement to be proven.
Source§type Witness = SchnorrWitness
type Witness = SchnorrWitness
The private witness known only to the prover.
Source§type Commitment = PointCommitment
type Commitment = PointCommitment
The commitment message type.
Source§type Challenge = ScalarChallenge
type Challenge = ScalarChallenge
The challenge message type.
Source§type Response = ScalarResponse
type Response = ScalarResponse
The response message type.
Source§fn prover_commit(
_statement: &Self::Statement,
_witness: &Self::Witness,
) -> (Self::Commitment, Vec<u8>)
fn prover_commit( _statement: &Self::Statement, _witness: &Self::Witness, ) -> (Self::Commitment, Vec<u8>)
Generate the prover’s initial commitment. Read more
Auto Trait Implementations§
impl Freeze for SchnorrProof
impl RefUnwindSafe for SchnorrProof
impl Send for SchnorrProof
impl Sync for SchnorrProof
impl Unpin for SchnorrProof
impl UnwindSafe for SchnorrProof
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