Skip to content

Ed25519 signature verification fails #480

@LumaRay

Description

@LumaRay

Signature verification fails, pleqse help!

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions