Replies: 1 comment
-
this is the document your comment seem to apply to: http://bittorrent.org/beps/bep_0044.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@arvidn The ed25519 keys in library are not the same as the ed25519 keys used around the world. Is this some kind of its own version of the keys?
Throughout the world, a private key is 32 bytes of the seed + 32 bytes of the public key. And here the private key is a 64 byte hash of the seed. Probably you need to rename ed25519 to ed25519t at least? To avoid confusion?
And of course, worldwide ed25519 keys do not pass verification in the ed25519 torrent keys and vice versa. These are different keys. Although they have the same name and the same size.
How keys are generated worldwide: https://github.com/golang/go/blob/1e690409206ff97330b5a91517d453fc5129bab2/src/crypto/ed25519/ed25519.go#L172C43-L172C43
This matches Bouncycastle keys.
Beta Was this translation helpful? Give feedback.
All reactions