#crypto #one-time-signatures #wots

wots-rs

Implementation of the Winternitz One-time Signature Scheme made using Rust

2 unstable releases

0.2.0 May 13, 2023
0.1.0 May 13, 2023

#1518 in Cryptography

GPL-3.0 license

15KB
141 lines

wots-rs

crates.io docs.rs

Implementation of the Winternitz One-time Signature Scheme made using Rust


lib.rs:

wots-rs

Implementation of the Winternitz One-time Signature Scheme made using Rust

Example

use rand::rngs::OsRng;
use wots_rs::Keypair;

let mut csprng = OsRng{};
let keypair: Keypair = Keypair::generate(&mut csprng);

let message = b"hello";
let signature = keypair.sign(message);

assert!(keypair.verify(message, signature));

Dependencies

~315KB