Crates.io | one-time-signatures-cry4 |
lib.rs | one-time-signatures-cry4 |
version | 0.1.1 |
source | src |
created_at | 2022-06-07 16:19:50.300333 |
updated_at | 2022-06-07 23:01:23.793379 |
description | An implementation of Lamport and Winternitz one time signatures schemes. |
homepage | |
repository | |
max_upload_size | |
id | 601564 |
size | 36,624 |
Rust implementation of simple Lamport and Winternitz one time signatures
use one_time_signatures_cry4::{LamportSecretKey, LamportPublicKey};
use sha2::Sha256;
let message = b"Hi There!";
let mut sk = LamportSecretKey::<Sha256>::new();
let pk = LamportPublicKey::<Sha256>::new(&sk);
let sig = sk.sign_arbitrary(message).unwrap();
pk.verify_arbitrary(message, &sig).unwrap();
To build the benchmark file run:
cargo build --features build-binary --bin benchmark