Skip to content

Commit

Permalink
feat: add twisted Edwards curve implementation
Browse files Browse the repository at this point in the history
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
pycckuu committed Oct 3, 2024
1 parent 22631f3 commit 6f4a14e
Show file tree
Hide file tree
Showing 6 changed files with 532 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ This example demonstrates:
Make sure to handle any potential errors or invalid inputs in your actual implementation.


## TODO



## License

This project is licensed under the MIT License. See the `LICENSE` file for more details.
Loading

0 comments on commit 6f4a14e

Please sign in to comment.