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> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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