Point

pub trait Point: Element {
    // Required methods
    fn map(&mut self, dst: DST, message: &[u8]);
    fn msm(points: &[Self], scalars: &[Scalar]) -> Self;
}
Expand description

A point on a curve.

Required Methods§

Source

fn map(&mut self, dst: DST, message: &[u8])

Maps the provided data to a group element.

Source

fn msm(points: &[Self], scalars: &[Scalar]) -> Self

Performs a multi‑scalar multiplication of the provided points and scalars.

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§

Source§

impl Point for G1

Source§

impl Point for G2