Struct solana_zk_token_sdk::encryption::elgamal::DecryptHandle
source · [−]pub struct DecryptHandle(_);
Expand description
Decryption handle for Pedersen commitment.
Implementations
sourceimpl DecryptHandle
impl DecryptHandle
pub fn new(public: &ElGamalPubkey, opening: &PedersenOpening) -> Self
pub fn get_point(&self) -> &RistrettoPoint
pub fn to_bytes(&self) -> [u8; 32]
pub fn from_bytes(bytes: &[u8]) -> Option<DecryptHandle>
Trait Implementations
sourceimpl<'a, 'b> Add<&'b DecryptHandle> for &'a DecryptHandle
impl<'a, 'b> Add<&'b DecryptHandle> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the +
operator.
sourcefn add(self, handle: &'b DecryptHandle) -> DecryptHandle
fn add(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the +
operation. Read more
sourceimpl<'b> Add<&'b DecryptHandle> for DecryptHandle
impl<'b> Add<&'b DecryptHandle> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the +
operator.
sourcefn add(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn add(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the +
operation. Read more
sourceimpl<'a> Add<DecryptHandle> for &'a DecryptHandle
impl<'a> Add<DecryptHandle> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the +
operator.
sourcefn add(self, rhs: DecryptHandle) -> DecryptHandle
fn add(self, rhs: DecryptHandle) -> DecryptHandle
Performs the +
operation. Read more
sourceimpl Add<DecryptHandle> for DecryptHandle
impl Add<DecryptHandle> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the +
operator.
sourcefn add(self, rhs: DecryptHandle) -> DecryptHandle
fn add(self, rhs: DecryptHandle) -> DecryptHandle
Performs the +
operation. Read more
sourceimpl Clone for DecryptHandle
impl Clone for DecryptHandle
sourcefn clone(&self) -> DecryptHandle
fn clone(&self) -> DecryptHandle
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 DecryptHandle
impl Debug for DecryptHandle
sourceimpl Default for DecryptHandle
impl Default for DecryptHandle
sourcefn default() -> DecryptHandle
fn default() -> DecryptHandle
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DecryptHandle
impl<'de> Deserialize<'de> for DecryptHandle
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<DecryptHandle> for DecryptHandle
impl From<DecryptHandle> for DecryptHandle
sourcefn from(handle: DecryptHandle) -> Self
fn from(handle: DecryptHandle) -> Self
Converts to this type from the input type.
sourceimpl<'a, 'b> Mul<&'b DecryptHandle> for &'a Scalar
impl<'a, 'b> Mul<&'b DecryptHandle> for &'a Scalar
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, handle: &'b DecryptHandle) -> DecryptHandle
fn mul(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl<'b> Mul<&'b DecryptHandle> for Scalar
impl<'b> Mul<&'b DecryptHandle> for Scalar
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn mul(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl<'a, 'b> Mul<&'b Scalar> for &'a DecryptHandle
impl<'a, 'b> Mul<&'b Scalar> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, scalar: &'b Scalar) -> DecryptHandle
fn mul(self, scalar: &'b Scalar) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl<'b> Mul<&'b Scalar> for DecryptHandle
impl<'b> Mul<&'b Scalar> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &'b Scalar) -> DecryptHandle
fn mul(self, rhs: &'b Scalar) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl<'a> Mul<DecryptHandle> for &'a Scalar
impl<'a> Mul<DecryptHandle> for &'a Scalar
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: DecryptHandle) -> DecryptHandle
fn mul(self, rhs: DecryptHandle) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl Mul<DecryptHandle> for Scalar
impl Mul<DecryptHandle> for Scalar
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: DecryptHandle) -> DecryptHandle
fn mul(self, rhs: DecryptHandle) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl<'a> Mul<Scalar> for &'a DecryptHandle
impl<'a> Mul<Scalar> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Scalar) -> DecryptHandle
fn mul(self, rhs: Scalar) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl Mul<Scalar> for DecryptHandle
impl Mul<Scalar> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Scalar) -> DecryptHandle
fn mul(self, rhs: Scalar) -> DecryptHandle
Performs the *
operation. Read more
sourceimpl PartialEq<DecryptHandle> for DecryptHandle
impl PartialEq<DecryptHandle> for DecryptHandle
sourcefn eq(&self, other: &DecryptHandle) -> bool
fn eq(&self, other: &DecryptHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DecryptHandle) -> bool
fn ne(&self, other: &DecryptHandle) -> bool
This method tests for !=
.
sourceimpl Serialize for DecryptHandle
impl Serialize for DecryptHandle
sourceimpl<'a, 'b> Sub<&'b DecryptHandle> for &'a DecryptHandle
impl<'a, 'b> Sub<&'b DecryptHandle> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the -
operator.
sourcefn sub(self, handle: &'b DecryptHandle) -> DecryptHandle
fn sub(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the -
operation. Read more
sourceimpl<'b> Sub<&'b DecryptHandle> for DecryptHandle
impl<'b> Sub<&'b DecryptHandle> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn sub(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the -
operation. Read more
sourceimpl<'a> Sub<DecryptHandle> for &'a DecryptHandle
impl<'a> Sub<DecryptHandle> for &'a DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: DecryptHandle) -> DecryptHandle
fn sub(self, rhs: DecryptHandle) -> DecryptHandle
Performs the -
operation. Read more
sourceimpl Sub<DecryptHandle> for DecryptHandle
impl Sub<DecryptHandle> for DecryptHandle
type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: DecryptHandle) -> DecryptHandle
fn sub(self, rhs: DecryptHandle) -> DecryptHandle
Performs the -
operation. Read more
sourceimpl TryFrom<DecryptHandle> for DecryptHandle
impl TryFrom<DecryptHandle> for DecryptHandle
type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
sourcefn try_from(pod: DecryptHandle) -> Result<Self, Self::Error>
fn try_from(pod: DecryptHandle) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for DecryptHandle
impl Eq for DecryptHandle
impl StructuralEq for DecryptHandle
impl StructuralPartialEq for DecryptHandle
Auto Trait Implementations
impl RefUnwindSafe for DecryptHandle
impl Send for DecryptHandle
impl Sync for DecryptHandle
impl Unpin for DecryptHandle
impl UnwindSafe for DecryptHandle
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