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, other: &'b DecryptHandle) -> DecryptHandle
fn add(self, other: &'b DecryptHandle) -> DecryptHandle
Performs the
+
operation. Read moresourceimpl<'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 moresourceimpl<'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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 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, other: &'b Scalar) -> DecryptHandle
fn mul(self, other: &'b Scalar) -> DecryptHandle
Performs the
*
operation. Read moresourceimpl<'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 moresourceimpl<'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 moresourceimpl 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 moresourceimpl PartialEq<DecryptHandle> for DecryptHandle
impl PartialEq<DecryptHandle> for DecryptHandle
sourcefn eq(&self, other: &DecryptHandle) -> bool
fn eq(&self, other: &DecryptHandle) -> bool
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, other: &'b DecryptHandle) -> DecryptHandle
fn sub(self, other: &'b DecryptHandle) -> DecryptHandle
Performs the
-
operation. Read moresourceimpl<'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 moresourceimpl<'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 moresourceimpl 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 moresourceimpl 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 Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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