| Crates.io | commonware-vrf |
| lib.rs | commonware-vrf |
| version | 0.0.62 |
| created_at | 2024-08-28 04:47:53.273186+00 |
| updated_at | 2025-09-10 18:48:21.357922+00 |
| description | Generate bias-resistant randomness with untrusted contributors using commonware-cryptography and commonware-p2p. |
| homepage | https://commonware.xyz |
| repository | https://github.com/commonwarexyz/monorepo/tree/main/examples/vrf |
| max_upload_size | |
| id | 1354123 |
| size | 144,541 |
Generate bias-resistant randomness with untrusted contributors using commonware-cryptography and commonware-p2p.
To run this example, you must first install Rust.
cargo run --release -- --me 0@3000 --participants 0,1,2,3,4 --contributors 1,2,3,4
cargo run --release -- --bootstrappers 0@127.0.0.1:3000 --me 1@3001 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4
cargo run --release -- --bootstrappers 0@127.0.0.1:3000 --me 2@3002 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4
cargo run --release -- --bootstrappers 0@127.0.0.1:3000 --me 3@3003 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4
Send invalid dealings to contributors.
cargo run --release -- --corrupt --bootstrappers 0@127.0.0.1:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4
Only send 2f dealings to contributors (force reveal f).
cargo run --release -- --lazy --bootstrappers 0@127.0.0.1:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4
Forge acknowledgements from contributors.
cargo run --release -- --forger --bootstrappers 0@127.0.0.1:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4