#[repr(C)]pub struct PubkeyValidityProof {
pub proof: PubkeySigmaProof,
}
Fields§
§proof: PubkeySigmaProof
Associated public-key sigma proof
Implementations§
source§impl PubkeyValidityProof
impl PubkeyValidityProof
pub fn new(keypair: &ElGamalKeypair, transcript: &mut Transcript) -> Self
pub fn verify( &self, pubkey: &ElGamalPubkey, transcript: &mut Transcript ) -> Result<(), ProofError>
Trait Implementations§
source§impl Clone for PubkeyValidityProof
impl Clone for PubkeyValidityProof
source§fn clone(&self) -> PubkeyValidityProof
fn clone(&self) -> PubkeyValidityProof
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 moreimpl Copy for PubkeyValidityProof
impl Pod for PubkeyValidityProof
Auto Trait Implementations§
impl RefUnwindSafe for PubkeyValidityProof
impl Send for PubkeyValidityProof
impl Sync for PubkeyValidityProof
impl Unpin for PubkeyValidityProof
impl UnwindSafe for PubkeyValidityProof
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.