Struct snarkvm_wasm::GroupEncryptionPublicKey[][src]

pub struct GroupEncryptionPublicKey<G>(pub G)
where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
;

Trait Implementations

impl<G, F, GG> AllocGadget<GroupEncryptionPublicKey<G>, F> for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

impl<G> CanonicalDeserialize for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> CanonicalSerialize for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> Clone for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> Copy for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> Debug for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> Default for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> Eq for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G, SG> From<GroupEncryptionPublicKey<G>> for SchnorrPublicKey<SG> where
    G: Group + ProjectiveCurve,
    SG: Group + CanonicalSerialize + CanonicalDeserialize
[src]

Map the GroupEncryption public key into a Schnorr public key.

impl<G> FromBytes for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

pub fn read<R>(reader: R) -> Result<GroupEncryptionPublicKey<G>, Error> where
    R: Read
[src]

Reads the x-coordinate of the encryption public key.

impl<G> Hash for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> PartialEq<GroupEncryptionPublicKey<G>> for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

impl<G> ToBytes for GroupEncryptionPublicKey<G> where
    G: Group + ProjectiveCurve + CanonicalSerialize + CanonicalDeserialize
[src]

pub fn write<W>(&self, writer: W) -> Result<(), Error> where
    W: Write
[src]

Writes the x-coordinate of the encryption public key.

Auto Trait Implementations

impl<G> RefUnwindSafe for GroupEncryptionPublicKey<G> where
    G: RefUnwindSafe

impl<G> Send for GroupEncryptionPublicKey<G>

impl<G> Sync for GroupEncryptionPublicKey<G>

impl<G> Unpin for GroupEncryptionPublicKey<G> where
    G: Unpin

impl<G> UnwindSafe for GroupEncryptionPublicKey<G> where
    G: UnwindSafe

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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 = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,