Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add twisted Edwards curve implementation
Introduce the `Edwards` struct and implement elliptic curve operations for twisted Edwards curves. This includes point addition, scalar multiplication, and curve membership checks. Two addition methods, `add` and `add_2`, are implemented, with accompanying tests to ensure consistency and correctness. Also, update the `FiniteField` module with a division function and extend the `Point` struct with helper methods to access coordinates. This change lays the foundation for supporting twisted Edwards curves, such as Curve25519 and Ed25519, in the elliptic curve cryptography module.
- Loading branch information