CryptoGroup

Trait CryptoGroup 

Source
pub trait CryptoGroup: Space<Self::Scalar> {
    type Scalar: Field;

    // Required method
    fn generator() -> Self;
}
Expand description

A group suitable for use in cryptography.

This is a cyclic group, with a specified generator.

The group is of prime order, and thus has an associated field of scalars.

This trait requires that this type implements Space over that field.

Required Associated Types§

Required Methods§

Source

fn generator() -> Self

Return the generator point of this group.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§