pub struct DecryptHandle(/* private fields */);
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
Source§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
Source§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
Source§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 for DecryptHandle
impl Add for DecryptHandle
Source§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(decoded_handle: DecryptHandle) -> Self
fn from(decoded_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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
*
operator.Source§impl Mul<Scalar> for DecryptHandle
impl Mul<Scalar> for DecryptHandle
Source§type Output = DecryptHandle
type Output = DecryptHandle
The resulting type after applying the
*
operator.Source§impl PartialEq for DecryptHandle
impl PartialEq for DecryptHandle
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
Source§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
Source§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
Source§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 for DecryptHandle
impl Sub for DecryptHandle
Source§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
Source§type Error = ElGamalError
type Error = ElGamalError
The type returned in the event of a conversion error.
impl Copy for DecryptHandle
impl Eq for DecryptHandle
impl StructuralPartialEq for DecryptHandle
Auto Trait Implementations§
impl Freeze for DecryptHandle
impl RefUnwindSafe for DecryptHandle
impl Send for DecryptHandle
impl Sync for DecryptHandle
impl Unpin for DecryptHandle
impl UnwindSafe for DecryptHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more