ec-generic-0.1.3 has been yanked.
ec_generic
This crate is a minimal and simple-to-use elliptic curve library. This library allows to perform the following operations over an elliptic curve finite cyclic group:
- Point Addition: R = P + Q. P and Q are both points belonging to the group, and the result R does it too.
- Point Doubling: R = P + P = 2 * P.
- Scalar Multiplication: R = d * P, we use the double-and-add algorithms
which combines point addition and doubling together.
dcan be any number.
The library could be use in any cryptographic algorithm that requires elliptic curve groups, for example:
- Digital Signature Algorithm (DSA)
- Zero-Knowledge Proofs (ZKP)
Usage
This crate is on crates.io and can be
used by adding regex to your dependencies in your project's Cargo.toml.
[]
= "0.1.2"
Example: Define a elliptic curve y^2 = x^3 + 2x + 2 and operate with it
use ;
Example: Define a secp256k1 elliptic curve y^2 = x^3 + 7 and operate with it
use ;