https://github.com/pyca/ed25519
Optimized version of the reference implementation of Ed25519
https://github.com/pyca/ed25519
Last synced: 10 months ago
JSON representation
Optimized version of the reference implementation of Ed25519
- Host: GitHub
- URL: https://github.com/pyca/ed25519
- Owner: pyca
- License: cc0-1.0
- Created: 2013-10-04T16:47:02.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T00:28:00.000Z (about 2 years ago)
- Last Synced: 2025-03-17T11:52:09.992Z (11 months ago)
- Language: Python
- Homepage:
- Size: 809 KB
- Stars: 36
- Watchers: 9
- Forks: 21
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
ed25519
=======
.. image:: https://github.com/pyca/ed25519/workflows/CI/badge.svg
:target: https://github.com/pyca/ed25519/actions?query=workflow%3ACI
`Ed25519 `_ is a high-speed public-key
signature system. ``ed25519.py`` is based on the original Python
implementation published on the Ed25519 website, with major
optimizations to make it run reasonably fast.
Warning
-------
This code is **not safe** for use with secret data. Even operating on
public data (i.e., verifying public signatures on public messages), it
is slower than alternatives.
The issue is that our computations may behave differently depending on
their inputs in ways that could reveal those inputs to an attacker;
they may take different amounts of time, and may have different memory
access patterns. These side-channel attacks are difficult to avoid in
Python, except perhaps with major sacrifice of efficiency.
This code may be useful in cases where you absolutely cannot have any
C code dependencies. Otherwise, `PyNaCl
`_ provides a version of the original
author's C implementation, which runs faster and is carefully
engineered to avoid side-channel attacks.
Running the tests
-----------------
``ed25519.py`` uses tox to run the test suite. You can run all the tests by using:
.. code:: bash
$ tox
Resources
---------
* `IRC `_
(#cryptography-dev - irc.freenode.net)