pub struct PedersenProof;Expand description
Pedersen commitment opening proof implementation.
Proves knowledge of (v, r) such that C = v * G + r * H.
Trait Implementations§
Source§impl SigmaProtocol for PedersenProof
impl SigmaProtocol for PedersenProof
Source§type Statement = PedersenStatement
type Statement = PedersenStatement
The public statement to be proven.
Source§type Witness = PedersenWitness
type Witness = PedersenWitness
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 = MultiScalarResponse
type Response = MultiScalarResponse
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 PedersenProof
impl RefUnwindSafe for PedersenProof
impl Send for PedersenProof
impl Sync for PedersenProof
impl Unpin for PedersenProof
impl UnwindSafe for PedersenProof
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