Struct secp256k1zkp::pedersen::Commitment
source · pub struct Commitment(pub [u8; 33]);
Expand description
A Pedersen commitment
Tuple Fields§
§0: [u8; 33]
Implementations§
source§impl Commitment
impl Commitment
sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer for FFI interfacing
source§impl Commitment
impl Commitment
Trait Implementations§
source§impl AsRef<[u8]> for Commitment
impl AsRef<[u8]> for Commitment
source§impl Clone for Commitment
impl Clone for Commitment
source§fn clone(&self) -> Commitment
fn clone(&self) -> Commitment
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 Commitment
impl Debug for Commitment
source§impl<'de> Deserialize<'de> for Commitment
impl<'de> Deserialize<'de> for Commitment
source§fn deserialize<D>(d: D) -> Result<Commitment, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Commitment, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Commitment
impl Hash for Commitment
source§impl Index<RangeFull> for Commitment
impl Index<RangeFull> for Commitment
source§impl Index<usize> for Commitment
impl Index<usize> for Commitment
source§impl Ord for Commitment
impl Ord for Commitment
source§fn cmp(&self, other: &Commitment) -> Ordering
fn cmp(&self, other: &Commitment) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Commitment
impl PartialEq for Commitment
source§fn eq(&self, other: &Commitment) -> bool
fn eq(&self, other: &Commitment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Commitment
impl PartialOrd for Commitment
source§fn partial_cmp(&self, other: &Commitment) -> Option<Ordering>
fn partial_cmp(&self, other: &Commitment) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Commitment
impl Serialize for Commitment
impl Copy for Commitment
impl Eq for Commitment
Auto Trait Implementations§
impl Freeze for Commitment
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnwindSafe for Commitment
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