Skip to content

Velnbur/lamport.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lamport.rs

Simple Rust implementaion of Lamport commitment scheme.

Examples

use lamport::SecretKey;
use rand::thread_rng;

let msg = b"Hello, world!";

// Generate random secret key
let seckey = SecretKey::generate(&mut thread_rng());

// Derive public key from it
let pubkey = seckey.public_key();

// Sign the message
let signature = seckey.sign(&msg);

// Verify the key using public one.
pubkey.verify(&signature, msg);

About

Rust implementation of Lamport commitment scheme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages