Skip to main content

MulByGenerator

Trait MulByGenerator 

pub trait MulByGenerator: Group {
    // Provided method
    fn mul_by_generator(scalar: &Self::Scalar) -> Self { ... }
}
Expand description

Multiplication by the generator.

May use optimizations (e.g. precomputed tables) when available.

Provided Methods§

fn mul_by_generator(scalar: &Self::Scalar) -> Self

Multiply by the generator of the prime-order subgroup.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<C> MulByGenerator for ProjectivePoint<C>
where ProjectivePoint<C>: Double, C: PrimeCurveParams,

§

fn mul_by_generator( scalar: &<ProjectivePoint<C> as Group>::Scalar, ) -> ProjectivePoint<C>

Implementors§

§

impl MulByGenerator for airbender_crypto::k256::ProjectivePoint