Point

Trait Point 

Source
pub trait Point: Element {
    type Error: Debug;

    // Required method
    fn map(&mut self, data: &[u8]) -> Result<(), <Self as Point>::Error>;
}
Expand description

Basic point functionality that can be multiplied by a scalar

Required Associated Types§

Source

type Error: Debug

Error which may occur while mapping to the group

Required Methods§

Source

fn map(&mut self, data: &[u8]) -> Result<(), <Self as Point>::Error>

Maps the provided data to a group element

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 threshold_bls::curve::bls12381::G1

Implementation of Point using G1 from BLS12_381

Source§

impl Point for threshold_bls::curve::bls12381::G2

Implementation of Point using G2 from BLS12_381

Source§

impl Point for threshold_bls::curve::bn254::G1

Implementation of Point using G1 from BN254

Source§

impl Point for threshold_bls::curve::bn254::G2

Implementation of Point using G2 from BN254