-
Cannot seem to get the shared secret to be the same using:
and
Where
Any clues on why? |
Beta Was this translation helpful? Give feedback.
Answered by
paulmillr
Jan 27, 2022
Replies: 1 comment 1 reply
-
The issue was, as usual, in endianness.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adavault
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was, as usual, in endianness.
toX25519()
returned Big endian integer whilescalarMult
consumed Little Endian Uint8Array. I've fixed it in 9f9c2f0. Sorry for that.