Struct solana_zk_token_sdk::encryption::pedersen::PedersenCommitment
source · [−]pub struct PedersenCommitment(_);
Expand description
Pedersen commitment type.
Implementations
sourceimpl PedersenCommitment
impl PedersenCommitment
pub fn get_point(&self) -> &RistrettoPoint
pub fn to_bytes(&self) -> [u8; 32]
pub fn from_bytes(bytes: &[u8]) -> Option<PedersenCommitment>
Trait Implementations
sourceimpl<'a, 'b> Add<&'b PedersenCommitment> for &'a PedersenCommitment
impl<'a, 'b> Add<&'b PedersenCommitment> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the +
operator.
sourcefn add(self, other: &'b PedersenCommitment) -> PedersenCommitment
fn add(self, other: &'b PedersenCommitment) -> PedersenCommitment
Performs the +
operation. Read more
sourceimpl<'b> Add<&'b PedersenCommitment> for PedersenCommitment
impl<'b> Add<&'b PedersenCommitment> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the +
operator.
sourcefn add(self, rhs: &'b PedersenCommitment) -> PedersenCommitment
fn add(self, rhs: &'b PedersenCommitment) -> PedersenCommitment
Performs the +
operation. Read more
sourceimpl<'a> Add<PedersenCommitment> for &'a PedersenCommitment
impl<'a> Add<PedersenCommitment> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the +
operator.
sourcefn add(self, rhs: PedersenCommitment) -> PedersenCommitment
fn add(self, rhs: PedersenCommitment) -> PedersenCommitment
Performs the +
operation. Read more
sourceimpl Add<PedersenCommitment> for PedersenCommitment
impl Add<PedersenCommitment> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the +
operator.
sourcefn add(self, rhs: PedersenCommitment) -> PedersenCommitment
fn add(self, rhs: PedersenCommitment) -> PedersenCommitment
Performs the +
operation. Read more
sourceimpl Clone for PedersenCommitment
impl Clone for PedersenCommitment
sourcefn clone(&self) -> PedersenCommitment
fn clone(&self) -> PedersenCommitment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PedersenCommitment
impl Debug for PedersenCommitment
sourceimpl Default for PedersenCommitment
impl Default for PedersenCommitment
sourcefn default() -> PedersenCommitment
fn default() -> PedersenCommitment
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PedersenCommitment
impl<'de> Deserialize<'de> for PedersenCommitment
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<PedersenCommitment> for PedersenCommitment
impl From<PedersenCommitment> for PedersenCommitment
sourcefn from(comm: PedersenCommitment) -> Self
fn from(comm: PedersenCommitment) -> Self
Converts to this type from the input type.
sourceimpl<'a, 'b> Mul<&'b Scalar> for &'a PedersenCommitment
impl<'a, 'b> Mul<&'b Scalar> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the *
operator.
sourcefn mul(self, other: &'b Scalar) -> PedersenCommitment
fn mul(self, other: &'b Scalar) -> PedersenCommitment
Performs the *
operation. Read more
sourceimpl<'b> Mul<&'b Scalar> for PedersenCommitment
impl<'b> Mul<&'b Scalar> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &'b Scalar) -> PedersenCommitment
fn mul(self, rhs: &'b Scalar) -> PedersenCommitment
Performs the *
operation. Read more
sourceimpl<'a> Mul<Scalar> for &'a PedersenCommitment
impl<'a> Mul<Scalar> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Scalar) -> PedersenCommitment
fn mul(self, rhs: Scalar) -> PedersenCommitment
Performs the *
operation. Read more
sourceimpl Mul<Scalar> for PedersenCommitment
impl Mul<Scalar> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Scalar) -> PedersenCommitment
fn mul(self, rhs: Scalar) -> PedersenCommitment
Performs the *
operation. Read more
sourceimpl PartialEq<PedersenCommitment> for PedersenCommitment
impl PartialEq<PedersenCommitment> for PedersenCommitment
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PedersenCommitment) -> bool
fn ne(&self, other: &PedersenCommitment) -> bool
This method tests for !=
.
sourceimpl Serialize for PedersenCommitment
impl Serialize for PedersenCommitment
sourceimpl<'a, 'b> Sub<&'b PedersenCommitment> for &'a PedersenCommitment
impl<'a, 'b> Sub<&'b PedersenCommitment> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the -
operator.
sourcefn sub(self, other: &'b PedersenCommitment) -> PedersenCommitment
fn sub(self, other: &'b PedersenCommitment) -> PedersenCommitment
Performs the -
operation. Read more
sourceimpl<'b> Sub<&'b PedersenCommitment> for PedersenCommitment
impl<'b> Sub<&'b PedersenCommitment> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: &'b PedersenCommitment) -> PedersenCommitment
fn sub(self, rhs: &'b PedersenCommitment) -> PedersenCommitment
Performs the -
operation. Read more
sourceimpl<'a> Sub<PedersenCommitment> for &'a PedersenCommitment
impl<'a> Sub<PedersenCommitment> for &'a PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: PedersenCommitment) -> PedersenCommitment
fn sub(self, rhs: PedersenCommitment) -> PedersenCommitment
Performs the -
operation. Read more
sourceimpl Sub<PedersenCommitment> for PedersenCommitment
impl Sub<PedersenCommitment> for PedersenCommitment
type Output = PedersenCommitment
type Output = PedersenCommitment
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: PedersenCommitment) -> PedersenCommitment
fn sub(self, rhs: PedersenCommitment) -> PedersenCommitment
Performs the -
operation. Read more
sourceimpl 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.
sourcefn try_from(pod: PedersenCommitment) -> Result<Self, Self::Error>
fn try_from(pod: PedersenCommitment) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for PedersenCommitment
impl Eq 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
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more