Struct safe_zk_token_sdk::encryption::elgamal::DecryptHandle
source · pub struct DecryptHandle(_);
Expand description
Decryption handle for Pedersen commitment.
Implementations§
source§impl 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§
source§impl<'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.source§fn add(self, handle: &'b DecryptHandle) -> DecryptHandle
fn add(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the
+
operation. Read moresource§impl<'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.source§fn add(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn add(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the
+
operation. Read moresource§impl<'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.source§fn add(self, rhs: DecryptHandle) -> DecryptHandle
fn add(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
+
operation. Read moresource§impl Add<DecryptHandle> for DecryptHandle
impl Add<DecryptHandle> for DecryptHandle
§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
+
operator.source§fn add(self, rhs: DecryptHandle) -> DecryptHandle
fn add(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
+
operation. Read moresource§impl Clone for DecryptHandle
impl Clone for DecryptHandle
source§fn clone(&self) -> DecryptHandle
fn clone(&self) -> DecryptHandle
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 DecryptHandle
impl Debug for DecryptHandle
source§impl Default for DecryptHandle
impl Default for DecryptHandle
source§fn default() -> DecryptHandle
fn default() -> DecryptHandle
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DecryptHandle
impl<'de> Deserialize<'de> for DecryptHandle
source§fn 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
source§impl From<DecryptHandle> for DecryptHandle
impl From<DecryptHandle> for DecryptHandle
source§fn from(handle: DecryptHandle) -> Self
fn from(handle: DecryptHandle) -> Self
Converts to this type from the input type.
source§impl<'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.source§fn mul(self, handle: &'b DecryptHandle) -> DecryptHandle
fn mul(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the
*
operation. Read moresource§impl<'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.source§fn mul(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn mul(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the
*
operation. Read moresource§impl<'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.source§impl<'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.source§impl<'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.source§fn mul(self, rhs: DecryptHandle) -> DecryptHandle
fn mul(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
*
operation. Read moresource§impl Mul<DecryptHandle> for Scalar
impl Mul<DecryptHandle> for Scalar
§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
*
operator.source§fn mul(self, rhs: DecryptHandle) -> DecryptHandle
fn mul(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
*
operation. Read moresource§impl<'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.source§impl Mul<Scalar> for DecryptHandle
impl Mul<Scalar> for DecryptHandle
§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
*
operator.source§impl PartialEq<DecryptHandle> for DecryptHandle
impl PartialEq<DecryptHandle> for DecryptHandle
source§fn 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 ==
.source§impl Serialize for DecryptHandle
impl Serialize for DecryptHandle
source§impl<'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.source§fn sub(self, handle: &'b DecryptHandle) -> DecryptHandle
fn sub(self, handle: &'b DecryptHandle) -> DecryptHandle
Performs the
-
operation. Read moresource§impl<'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.source§fn sub(self, rhs: &'b DecryptHandle) -> DecryptHandle
fn sub(self, rhs: &'b DecryptHandle) -> DecryptHandle
Performs the
-
operation. Read moresource§impl<'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.source§fn sub(self, rhs: DecryptHandle) -> DecryptHandle
fn sub(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
-
operation. Read moresource§impl Sub<DecryptHandle> for DecryptHandle
impl Sub<DecryptHandle> for DecryptHandle
§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
-
operator.source§fn sub(self, rhs: DecryptHandle) -> DecryptHandle
fn sub(self, rhs: DecryptHandle) -> DecryptHandle
Performs the
-
operation. Read moresource§impl 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.