Keats / jsonwebtoken

JWT lib in rust
MIT License
1.69k stars 271 forks source link

Add EdDSA (Ed25519) #154

Closed clehner closed 3 years ago

clehner commented 4 years ago

This adds support for Ed25519 keys, from the EdDSA family.

References:

RFC 8037 also defines Ed448, but ring doesn't have that (https://github.com/briansmith/ring/issues/463), so we don't use it.

I didn't add a test using jwt.io, as it doesn't look like they support EdDSA.