pub struct Ciphertext(/* private fields */);
Expand description
An ElGamal ciphertext.
Represented as a pair of the form (rG, M + rY) where r is a blinding factor, G is the group generator, M is the message, and Y is the public key.
Implementations§
Source§impl Ciphertext
impl Ciphertext
Sourcepub fn inner(&self) -> (RistrettoPoint, RistrettoPoint)
pub fn inner(&self) -> (RistrettoPoint, RistrettoPoint)
Returns the pair-of-points representation of the ciphertext. Intended for advanced use only.
Trait Implementations§
Source§impl Add<&Ciphertext> for Ciphertext
impl Add<&Ciphertext> for Ciphertext
Source§type Output = Ciphertext
type Output = Ciphertext
The resulting type after applying the
+
operator.Source§impl Add<Ciphertext> for &Ciphertext
impl Add<Ciphertext> for &Ciphertext
Source§type Output = Ciphertext
type Output = Ciphertext
The resulting type after applying the
+
operator.Source§impl Add for &Ciphertext
impl Add for &Ciphertext
Source§impl Add for Ciphertext
impl Add for Ciphertext
Source§impl Clone for Ciphertext
impl Clone for Ciphertext
Source§fn clone(&self) -> Ciphertext
fn clone(&self) -> Ciphertext
Returns a duplicate 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 Ciphertext
impl Debug for Ciphertext
Source§impl From<(RistrettoPoint, RistrettoPoint)> for Ciphertext
impl From<(RistrettoPoint, RistrettoPoint)> for Ciphertext
Source§fn from(pair: (RistrettoPoint, RistrettoPoint)) -> Self
fn from(pair: (RistrettoPoint, RistrettoPoint)) -> Self
Converts to this type from the input type.
Source§impl Identity for Ciphertext
impl Identity for Ciphertext
Source§impl Mul<&Scalar> for &Ciphertext
impl Mul<&Scalar> for &Ciphertext
Source§impl Mul<&Scalar> for Ciphertext
impl Mul<&Scalar> for Ciphertext
Source§impl Mul<Scalar> for &Ciphertext
impl Mul<Scalar> for &Ciphertext
Source§impl Mul<Scalar> for Ciphertext
impl Mul<Scalar> for Ciphertext
Source§impl Neg for &Ciphertext
impl Neg for &Ciphertext
Source§impl Neg for Ciphertext
impl Neg for Ciphertext
Source§impl PartialEq for Ciphertext
impl PartialEq for Ciphertext
Source§impl Sub<&Ciphertext> for Ciphertext
impl Sub<&Ciphertext> for Ciphertext
Source§type Output = Ciphertext
type Output = Ciphertext
The resulting type after applying the
-
operator.Source§impl Sub<Ciphertext> for &Ciphertext
impl Sub<Ciphertext> for &Ciphertext
Source§type Output = Ciphertext
type Output = Ciphertext
The resulting type after applying the
-
operator.Source§impl Sub for &Ciphertext
impl Sub for &Ciphertext
Source§impl Sub for Ciphertext
impl Sub for Ciphertext
impl Copy for Ciphertext
impl Eq for Ciphertext
impl StructuralPartialEq for Ciphertext
Auto Trait Implementations§
impl Freeze for Ciphertext
impl RefUnwindSafe for Ciphertext
impl Send for Ciphertext
impl Sync for Ciphertext
impl Unpin for Ciphertext
impl UnwindSafe for Ciphertext
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