pub struct DLEQProof;Expand description
DLEQ proof implementation.
Proves that log_g(x) = log_h(y) without revealing the common logarithm.
Trait Implementations§
Source§impl SigmaProtocol for DLEQProof
impl SigmaProtocol for DLEQProof
Source§type Statement = DLEQStatement
type Statement = DLEQStatement
The public statement to be proven.
Source§type Witness = DLEQWitness
type Witness = DLEQWitness
The private witness known only to the prover.
Source§type Commitment = MultiPointCommitment
type Commitment = MultiPointCommitment
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 DLEQProof
impl RefUnwindSafe for DLEQProof
impl Send for DLEQProof
impl Sync for DLEQProof
impl Unpin for DLEQProof
impl UnwindSafe for DLEQProof
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