Replies: 1 comment 1 reply
-
So, it was a "meh" decision by the libraries to implement 64-byte keys. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mirceanis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've seen this pattern in a number of places:
When a secretKey is generated (which for ed25519 would technically be 32 bytes wide) the public key is precomputed and attached to the output, making it 64 bytes wide.
The reason for this seems to be to avoid one scalar multiplication during signing [to compute the public key bytes].(
noble-curves/src/abstract/edwards.ts
Line 443 in 848a1b0
I wonder why this is not done in this library as well.
Beta Was this translation helpful? Give feedback.
All reactions