Skip to content

SoraSuegami/vdf_for_ethereum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3 Docs Crates io

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())

About

Simple RSA VDF in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%