[][src]Struct elgamal_ristretto::Ciphertext

pub struct Ciphertext {
    pub pk: PublicKey,
    pub points: (RistrettoPoint, RistrettoPoint),
}

Fields

pk: PublicKeypoints: (RistrettoPoint, RistrettoPoint)

Methods

impl Ciphertext[src]

pub fn get_points(self) -> (RistrettoPoint, RistrettoPoint)[src]

pub fn verify_correct_encryption(
    self,
    message_to_verify: &RistrettoPoint,
    proof: CompactProof
) -> bool
[src]

Verify proof of correct encryption

Trait Implementations

impl Clone for Ciphertext[src]

impl Copy for Ciphertext[src]

impl Debug for Ciphertext[src]

impl<'a, 'b> Div<&'b Scalar> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the / operator.

impl<'b> Div<&'b Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the / operator.

impl<'a> Div<Scalar> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the / operator.

impl Div<Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the / operator.

impl<'a, 'b> Sub<&'b Ciphertext> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl<'b> Sub<&'b Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl<'a> Sub<Ciphertext> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl Sub<Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl<'a, 'b> Add<&'b Ciphertext> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl<'b> Add<&'b Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl<'a> Add<Ciphertext> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl Add<Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl<'a, 'b> Mul<&'b Scalar> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl<'b> Mul<&'b Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl<'a> Mul<Scalar> for &'a Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Mul<Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Serialize for Ciphertext[src]

impl<'de> Deserialize<'de> for Ciphertext[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self