divergence between implementations serializing ed25519 public keys
See original GitHub issueThere is some ambiguity in the spec regarding how to encode ed25519’s public
portion of the keyval
:
The 'ed25519' format is:
{ "keytype" : "ed25519",
"scheme" : "ed25519",
"keyval" : {"public" : PUBLIC}
}
where PUBLIC is a 32-byte string.
While the ed25519 public key is a 32-byte string, I could find no implementation that’s serializing the public key to JSON as an array of integers. Instead, implementations are serializing it into a JSON string, but there is a fork in how this is implemented:
- python-tuf and go-tuf hex encode the public key
- rust-tuf encodes with base64url to encode the public key.
- notary, and hackage base64 standard encode the public key.
Can you provide any guidance on what serialization format we should be using?
edit: turns out rust-tuf uses base64url instead of base64standard for encoding.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (15 by maintainers)
Top Results From Across the Web
How to Interchange Ed25519 Keys - Hacker News
This is unnecessarily complicated. The beautiful thing about Ed25519 keys (private and public) is that they are simply opaque byte strings.
Read more >Python Bindings to the Ed25519 Digital Signature System
This package provides python bindings to a C implementation of the Ed25519 public-key signature system 1. The C code is copied from the...
Read more >What makes an Ethereum keypair valid?
Upon first glance, these public keys look the same as any generated by secp256k1. They can both be serialized to 32 byte values....
Read more >BIP32-Ed25519 Hierarchical Deterministic Keys over a Non ...
The BIP32 standard [9] specifies not just a derivation of several keys for a wallet, but a hierarchy of keys. We start with...
Read more >Taming the many EdDSAs - Cryptology ePrint Archive
allows to test compatibility of different Ed25519 implementations which ... For base point B, public key A and signature (R, S), ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just submitted #47 to update the spec to reflect hex encoding the ed25519 public key, and target file hashes.
I don’t see this as TAP worthy. It’s just a clarification / fix.
On Wed, Apr 10, 2019 at 8:49 PM Erick Tryzelaar notifications@github.com wrote: