Skip to content
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

ed25519 sign then verify returns false #2

Open
nmrshll opened this issue Feb 18, 2020 · 0 comments
Open

ed25519 sign then verify returns false #2

nmrshll opened this issue Feb 18, 2020 · 0 comments

Comments

@nmrshll
Copy link

nmrshll commented Feb 18, 2020

Steps to reproduce

With rust, (e.g. in a test), run:

let seed = [0u8, 1, 2, 3, 4, 5, 67];
let kp = ed25519::keypair(&seed);
let msg: &[u8] = b"This is a test of the tsunami alert system.";
let sig = ed25519::signature(&msg, &kp.0);
let verif = ed25519::verify(&msg, &kp.1, &sig);
println!("{:?}", verif); //false

Expected:

I would expect verif to be true

Actual

verif evaluates to false

Am I using the library wrong or is this a bug ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant