rsa-vdf

Crates.iorsa-vdf
lib.rsrsa-vdf
version0.0.1
sourcesrc
created_at2021-04-13 12:20:39.000954
updated_at2021-04-13 12:20:39.000954
descriptionVerifiable Delay Function (Wesolowski 18)
homepage
repository
max_upload_size
id382848
size63,542
Shlomtz (omershlo)

documentation

README

RSA VDF

Simple RSA VDF in Rust (Wesolowski18)

let t = BigInt::sample(20); //time parameter 
// One public setup can work for many VDFs
let setup = SetupForVDF::public_setup(&t); 


// 1. challenger picks VDF challenge 
let unsolved_vdf = SetupForVDF::pick_challenge(&setup); 
// 2. challenger sends unsolved_vdf to solver
// 3. solver solves VDF
let solved_vdf = UnsolvedVDF::eval(&unsolved_vdf);
// 4. solver sends solved vdf to challenger 
// 5. challnger checks solution
let res = solved_vdf.verify(&unsolved_vdf);
assert!(res.is_ok())
Commit count: 0

cargo fmt