Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages