qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.1k stars 66 forks source link

overhaul crypto generator API, support Ed25519 in JWT token construct/verify #1917

Closed b5 closed 2 years ago

b5 commented 2 years ago

Still lots more to do to make sure we actually support ED keys, but this is a good start. To that end, this PR adds Ed25519 test keys. Any testkeys.GetKeyData(11) or higher is an ED key. Next step is to use them all over in tests and see if anything explodes.

I also need to do a little research into public key in-lining, and weather we want this or not.

This PR breaks the key.CryptoGenerator interface by removing two methods. I'm not marking this as a breaking change because it's an internal API.