文件名称:Rust 中的简单 RSA VDF
文件大小:23KB
文件格式:ZIP
更新时间:2024-07-18 12:57:28
vdf
RSA VDFRust 中的简单 RSA VDF (Wesolowski18 )let t= BigInt::sample (20 );//time parameter// One public setup can work for many VDFslet setup= SetupForVDF::public_setup (& t);// 1. challenger picks VDF challengelet unsolved_vdf= SetupForVDF::pick_challenge (& setup);// 2. challenger sends unsolved_vdf to solver// 3. solver solves VDFlet solved_vdf= UnsolvedVDF::eval (& unsolved_vdf);// 4. solver sends solved vdf to challenger// 5. challnger checks solutionlet res= solved_vdf.verify (&
【文件预览】:
vdf-main
----.gitignore(328B)
----src()
--------utilities.rs(21KB)
--------lib.rs(5KB)
----LICENSE(34KB)
----Cargo.toml(501B)
----README.md(842B)