[−][src]Trait group::Group
This trait represents an element of a cryptographic group.
Associated Types
type Scalar: PrimeField
Scalars modulo the order of this group's scalar field.
Required methods
fn random<R: RngCore + ?Sized>(rng: &mut R) -> Self
Returns an element chosen uniformly at random from the non-identity elements of this group.
This function is non-deterministic, and samples from the user-provided RNG.
fn identity() -> Self
Returns the additive identity, also known as the "neutral element".
fn generator() -> Self
Returns a fixed generator of the prime-order subgroup.
fn is_identity(&self) -> Choice
Determines if this point is the identity.
#[must_use]fn double(&self) -> Self
Doubles this element.