ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

Implement From trait for BLS g1 & g2 points #101

Closed survived closed 3 years ago

survived commented 3 years ago

PR allows constructing BLS point from underlying structure (either G1Affine or G2Affine).

It also worth to consider adding this method to ECPoint trait:

fn from_element(Self::PublicKey) -> Self

There's similar method in ECScalar trait: set_element.