2 unstable releases
0.2.0 | May 13, 2023 |
---|---|
0.1.0 | May 13, 2023 |
#2325 in Cryptography
15KB
141 lines
wots-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
~325KB