Struct snarkvm_algorithms::encryption::group::GroupEncryption[][src]

pub struct GroupEncryption<G: Group + ProjectiveCurve, SG: Group, D: Digest> {
    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: Group + ProjectiveCurve, SG: Group, D: Digest> Clone for GroupEncryption<G, SG, D> where
    G: Group,
    SG: Group,
    D: Digest
[src]

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

impl<G: Group + ProjectiveCurve, SG: Group + CanonicalSerialize + CanonicalDeserialize, D: Digest + Send + Sync> EncryptionScheme for GroupEncryption<G, SG, D>[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: Group + ProjectiveCurve, SG: Group, D: Digest> Eq for GroupEncryption<G, SG, D> where
    G: Group,
    SG: Group,
    D: Digest
[src]

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

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

impl<G: Group + ProjectiveCurve, SG: Group + Hash + CanonicalSerialize + CanonicalDeserialize, D: Digest + Send + Sync> SignatureScheme for GroupEncryption<G, SG, D> where
    <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>,