lamport_signature
lamport_signature is a Rust implementation of the Lamport one-time signature scheme.
Difference from the lamport_sigs crate
- lamport_signature can use arbitrary fixed output size digest algorithm implemented in RustCrypto/hashes.
- lamport_signature can use arbitrary RNG (Random Number Generator) implemented in rust-lang-nursery/rand.
Documentation
Documentation is available here.
Usage
extern crate lamport_signature;
extern crate sha2;
extern crate rand;
use ;
use Sha256;
use thread_rng;
let mut rng = thread_rng;
let = ;
let signature = private_key.sign.expect;
assert!;
Bug Reporting
Please report bugs either as pull requests or as issues in the issue tracker. lamport_signature has a full disclosure vulnerability policy. Please do NOT attempt to report any security vulnerability in this code privately to anybody.