[−][src]Struct elgamal_ristretto::Ciphertext
Fields
pk: PublicKey
points: (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]
self,
message_to_verify: &RistrettoPoint,
proof: CompactProof
) -> bool
Verify proof of correct encryption
Trait Implementations
impl Clone for Ciphertext
[src]
fn clone(&self) -> Ciphertext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn div(self, other: &'b Scalar) -> Ciphertext
[src]
impl<'b> Div<&'b Scalar> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the /
operator.
fn div(self, rhs: &'b Scalar) -> Ciphertext
[src]
impl<'a> Div<Scalar> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the /
operator.
fn div(self, rhs: Scalar) -> Ciphertext
[src]
impl Div<Scalar> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the /
operator.
fn div(self, rhs: Scalar) -> Ciphertext
[src]
impl<'a, 'b> Sub<&'b Ciphertext> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the -
operator.
fn sub(self, other: &'b Ciphertext) -> Ciphertext
[src]
impl<'b> Sub<&'b Ciphertext> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Ciphertext) -> Ciphertext
[src]
impl<'a> Sub<Ciphertext> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the -
operator.
fn sub(self, rhs: Ciphertext) -> Ciphertext
[src]
impl Sub<Ciphertext> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the -
operator.
fn sub(self, rhs: Ciphertext) -> Ciphertext
[src]
impl<'a, 'b> Add<&'b Ciphertext> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the +
operator.
fn add(self, other: &'b Ciphertext) -> Ciphertext
[src]
impl<'b> Add<&'b Ciphertext> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Ciphertext) -> Ciphertext
[src]
impl<'a> Add<Ciphertext> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the +
operator.
fn add(self, rhs: Ciphertext) -> Ciphertext
[src]
impl Add<Ciphertext> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the +
operator.
fn add(self, rhs: Ciphertext) -> Ciphertext
[src]
impl<'a, 'b> Mul<&'b Scalar> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the *
operator.
fn mul(self, other: &'b Scalar) -> Ciphertext
[src]
impl<'b> Mul<&'b Scalar> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Scalar) -> Ciphertext
[src]
impl<'a> Mul<Scalar> for &'a Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the *
operator.
fn mul(self, rhs: Scalar) -> Ciphertext
[src]
impl Mul<Scalar> for Ciphertext
[src]
type Output = Ciphertext
The resulting type after applying the *
operator.
fn mul(self, rhs: Scalar) -> Ciphertext
[src]
impl Serialize for Ciphertext
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Ciphertext
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Ciphertext
impl Sync for Ciphertext
impl Unpin for Ciphertext
impl UnwindSafe for Ciphertext
impl RefUnwindSafe for Ciphertext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self