Struct safe_zk_token_sdk::zk_token_elgamal::pod::PedersenCommitment
source · #[repr(transparent)]pub struct PedersenCommitment(pub [u8; 32]);
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl Clone for PedersenCommitment
impl Clone for PedersenCommitment
source§fn clone(&self) -> PedersenCommitment
fn clone(&self) -> PedersenCommitment
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 moresource§impl Debug for PedersenCommitment
impl Debug for PedersenCommitment
source§impl Default for PedersenCommitment
impl Default for PedersenCommitment
source§fn default() -> PedersenCommitment
fn default() -> PedersenCommitment
Returns the “default value” for a type. Read more
source§impl From<PedersenCommitment> for CompressedRistretto
impl From<PedersenCommitment> for CompressedRistretto
source§fn from(pod: PedersenCommitment) -> Self
fn from(pod: PedersenCommitment) -> Self
Converts to this type from the input type.
source§impl From<PedersenCommitment> for PedersenCommitment
impl From<PedersenCommitment> for PedersenCommitment
source§fn from(comm: PedersenCommitment) -> Self
fn from(comm: PedersenCommitment) -> Self
Converts to this type from the input type.
source§impl From<PedersenCommitment> for PodRistrettoPoint
impl From<PedersenCommitment> for PodRistrettoPoint
source§fn from(commitment: PedersenCommitment) -> Self
fn from(commitment: PedersenCommitment) -> Self
Converts to this type from the input type.
source§impl From<PodRistrettoPoint> for PedersenCommitment
impl From<PodRistrettoPoint> for PedersenCommitment
source§fn from(point: PodRistrettoPoint) -> Self
fn from(point: PodRistrettoPoint) -> Self
Converts to this type from the input type.
source§impl PartialEq<PedersenCommitment> for PedersenCommitment
impl PartialEq<PedersenCommitment> for PedersenCommitment
source§fn eq(&self, other: &PedersenCommitment) -> bool
fn eq(&self, other: &PedersenCommitment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<PedersenCommitment> for PedersenCommitment
impl TryFrom<PedersenCommitment> for PedersenCommitment
§type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
impl Copy for PedersenCommitment
impl Eq for PedersenCommitment
impl Pod for PedersenCommitment
impl StructuralEq for PedersenCommitment
impl StructuralPartialEq for PedersenCommitment
Auto Trait Implementations§
impl RefUnwindSafe for PedersenCommitment
impl Send for PedersenCommitment
impl Sync for PedersenCommitment
impl Unpin for PedersenCommitment
impl UnwindSafe for PedersenCommitment
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
.