You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use crypto::ed25519::{keypair, signature, verify};
fn main() {
let seed: &[u8] = b"This is a seed";
let message: &[u8] = b"This is a test of the tsunami a This is a test of the tsunami a ";
let (mut secret_key, mut public_key) = keypair(seed);
let mut sig = signature(message, &secret_key);
assert!(verify(message, &public_key, &sig)); // Assert fails here
}
The text was updated successfully, but these errors were encountered:
Signature verification fails, pleqse help!
The text was updated successfully, but these errors were encountered: