one-time-signatures-cry4

Crates.ioone-time-signatures-cry4
lib.rsone-time-signatures-cry4
version0.1.1
sourcesrc
created_at2022-06-07 16:19:50.300333
updated_at2022-06-07 23:01:23.793379
descriptionAn implementation of Lamport and Winternitz one time signatures schemes.
homepage
repository
max_upload_size
id601564
size36,624
(DeadViolets)

documentation

README

One-Time-Signatures

Rust implementation of simple Lamport and Winternitz one time signatures

Usage

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();

Benchmark

To build the benchmark file run:

cargo build --features build-binary --bin benchmark
Commit count: 0

cargo fmt