Skip to content

Trying to get compatability with Rust library ed25519_dalek so far unsuccessfully #83

Answered by paulmillr
jcdc404 asked this question in Q&A
Discussion options

You must be logged in to vote

This is incorrect: Uint8Array.from("testing"). It will produce a bunch of zeros. You can do this with Buffer, but Uint8Array is not buffer.

So you are passing different inputs to ed25519, which is why it doesn't match.

To convert text to Uint8Array, use new TextEncoder().encode(text).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jcdc404
Comment options

Answer selected by jcdc404
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants