Struct snarkvm_wasm::GroupEncryption[][src]

pub struct GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
{ pub parameters: GroupEncryptionParameters<G>, pub _signature_group: PhantomData<SG>, pub _hash: PhantomData<D>, }

Fields

parameters: GroupEncryptionParameters<G>_signature_group: PhantomData<SG>_hash: PhantomData<D>

Trait Implementations

impl<G, SG, D> Clone for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
[src]

impl<G, SG, D> Debug for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
[src]

impl<G, SG, D, F, GG> EncryptionGadget<GroupEncryption<G, SG, D>, F> for GroupEncryptionGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    D: Send + Sync + Digest,
    SG: Group + CanonicalSerialize + CanonicalDeserialize,
    F: PrimeField,
    GG: CompressedGroupGadget<G, F>, 
[src]

type BlindingExponentGadget = GroupEncryptionBlindingExponentsGadget<G>

type CiphertextGadget = GroupEncryptionCiphertextGadget<G, F, GG>

type ParametersGadget = GroupEncryptionParametersGadget<G>

type PlaintextGadget = GroupEncryptionPlaintextGadget<G, F, GG>

type PrivateKeyGadget = GroupEncryptionPrivateKeyGadget<G>

type PublicKeyGadget = GroupEncryptionPublicKeyGadget<G, F, GG>

type RandomnessGadget = GroupEncryptionRandomnessGadget<G>

impl<G, SG, D> EncryptionScheme for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Send + Sync + Digest,
    SG: Group + CanonicalSerialize + CanonicalDeserialize
[src]

type BlindingExponent = <G as Group>::ScalarField

type Parameters = GroupEncryptionParameters<G>

type PrivateKey = <G as Group>::ScalarField

type PublicKey = GroupEncryptionPublicKey<G>

type Randomness = <G as Group>::ScalarField

type Text = G

impl<G, SG, D> Eq for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
[src]

impl<G, SG, D> From<GroupEncryptionParameters<G>> for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
[src]

impl<G, SG, D> PartialEq<GroupEncryption<G, SG, D>> for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Digest,
    SG: Group
[src]

impl<G, SG, D> SignatureScheme for GroupEncryption<G, SG, D> where
    G: Group + ProjectiveCurve,
    D: Send + Sync + Digest,
    SG: Hash + Group + CanonicalSerialize + CanonicalDeserialize,
    <G as Group>::ScalarField: PrimeField
[src]

type Output = SchnorrOutput<SG>

type Parameters = GroupEncryptionParameters<G>

type PrivateKey = <G as Group>::ScalarField

type PublicKey = GroupEncryptionPublicKey<G>

Auto Trait Implementations

impl<G, SG, D> RefUnwindSafe for GroupEncryption<G, SG, D> where
    D: RefUnwindSafe,
    G: RefUnwindSafe,
    SG: RefUnwindSafe

impl<G, SG, D> Send for GroupEncryption<G, SG, D> where
    D: Send

impl<G, SG, D> Sync for GroupEncryption<G, SG, D> where
    D: Sync

impl<G, SG, D> Unpin for GroupEncryption<G, SG, D> where
    D: Unpin,
    G: Unpin,
    SG: Unpin

impl<G, SG, D> UnwindSafe for GroupEncryption<G, SG, D> where
    D: UnwindSafe,
    G: UnwindSafe,
    SG: 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>,