-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ed25519 public key codec #46
Conversation
See ipfs/notes#241 (comment) I suggest using the code `0xed` so that's it's visually obvious and easy to remember it's associated with ed25519.
I'm a little bit confused as to whether or not this is a valid varint codec. |
@JustinDrake values in this table are not varint encoded. Varint encoded values might look different. |
@Kubuxu I see. Then maybe |
I am ok with it being 2bytes. It is just one byte extra and it is not used for content addressing that frequently (1 byte in case of sha would make a difference). @whyrusleeping second opinion. |
table.csv
Outdated
@@ -200,3 +200,4 @@ stellar-tx, Stellar Tx, 0xd1 | |||
|
|||
torrent-info, Torrent file info field (bencoded), 0x7b | |||
torrent-file, Torrent file (bencoded), 0x7c | |||
ed25519, Ed25519 public key, 0xed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change the name to ed25519-pub
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
I think this LGTM |
See ipfs/notes#241 (comment)
I suggest using the code
0xed
so that's it's visually obvious and easy to remember it's associated with ed25519.