Struct snarkvm_wasm::algorithms::encryption::GroupEncryptionPublicKeyGadget[][src]

pub struct GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group,
    F: Field,
    GG: GroupGadget<G, F>, 
{ /* fields omitted */ }

Group encryption public key gadget

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, F, GG> Clone for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

impl<G, F, GG> ConditionalEqGadget<F> for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

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

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

impl<G, F, GG> EqGadget<F> for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

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

impl<G, F, GG> StructuralEq for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

impl<G, F, GG> StructuralPartialEq for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

impl<G, F, GG> ToBytesGadget<F> for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: CompressedGroupGadget<G, F>, 
[src]

pub fn to_bytes<CS>(&self, cs: CS) -> Result<Vec<UInt8, Global>, SynthesisError> where
    CS: ConstraintSystem<F>, 
[src]

Writes the x-coordinate of the encryption public key.

pub fn to_bytes_strict<CS>(
    &self,
    cs: CS
) -> Result<Vec<UInt8, Global>, SynthesisError> where
    CS: ConstraintSystem<F>, 
[src]

Writes the x-coordinate of the encryption public key. Additionally checks if the generated list of booleans is ‘valid’.

Auto Trait Implementations

impl<G, F, GG> RefUnwindSafe for GroupEncryptionPublicKeyGadget<G, F, GG> where
    F: RefUnwindSafe,
    G: RefUnwindSafe,
    GG: RefUnwindSafe

impl<G, F, GG> !Send for GroupEncryptionPublicKeyGadget<G, F, GG>

impl<G, F, GG> !Sync for GroupEncryptionPublicKeyGadget<G, F, GG>

impl<G, F, GG> Unpin for GroupEncryptionPublicKeyGadget<G, F, GG> where
    GG: Unpin

impl<G, F, GG> UnwindSafe for GroupEncryptionPublicKeyGadget<G, F, GG> where
    F: RefUnwindSafe,
    G: RefUnwindSafe,
    GG: 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>,