Add pure-Rust VDF verifier crate (no GMP/C dependencies)#1378
Add pure-Rust VDF verifier crate (no GMP/C dependencies)#1378richardkiss wants to merge 1 commit intomainfrom
Conversation
Adds chia-vdf-verify crate with Wesolowski VDF proof verification using malachite-nz for arbitrary precision integers. This provides a pure-Rust alternative to chiavdf's C++/GMP implementation for verification only. Key features: - No C/C++ dependencies or GMP linking requirements - Uses malachite-nz for big integer operations - Includes 110+ test vectors for validation - Passes all tests and clippy checks Performance is approximately 1.5-2x slower than C/GMP implementation but eliminates cross-platform build complexity, especially on Windows. Python bindings are feature-gated but not yet integrated into the main chia_rs PyO3 module (to be done in a follow-up). Made-with: Cursor
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. It is recommended to resolve "Warn" alerts too. Learn more about Socket for GitHub.
|
Summary
This PR adds a new
chia-vdf-verifycrate to the workspace that provides pure-Rust VDF (Verifiable Delay Function) proof verification using Wesolowski's protocol.Key changes:
crates/chia-vdf-verify/with complete VDF verification implementationmalachite-nzandmalachite-basefor arbitrary precision integer arithmetic (no GMP or C dependencies)Benefits:
Performance:
Python bindings:
pythonfeature)Source:
Based on https://github.com/richardkiss/chia-vdf-verify (malachite branch)
Test plan
cargo build -p chia-vdf-verifysucceedscargo test -p chia-vdf-verifypasses (26 unit tests + 21 integration tests)cargo clippy -p chia-vdf-verifypassesgenreserved keyword issue)Made with Cursor