#contributors #randomness #untrusted #arbiter #lazy-evaluation #generate #blockchain #corrupt #commonware-cryptography #commonware-p2p

app commonware-vrf

Generate bias-resistant randomness with untrusted contributors using commonware-cryptography and commonware-p2p

39 releases

new 0.0.54 Jun 3, 2025
0.0.48 Apr 28, 2025
0.0.43 Mar 16, 2025
0.0.14 Dec 15, 2024
0.0.12 Nov 5, 2024

#641 in Magic Beans

Download history 101/week @ 2025-02-15 128/week @ 2025-02-22 279/week @ 2025-03-01 472/week @ 2025-03-08 236/week @ 2025-03-15 14/week @ 2025-03-22 121/week @ 2025-04-05 25/week @ 2025-04-12 109/week @ 2025-04-19 417/week @ 2025-04-26 231/week @ 2025-05-03 74/week @ 2025-05-10 268/week @ 2025-05-17 183/week @ 2025-05-24 121/week @ 2025-05-31

651 downloads per month

MIT/Apache

1.5MB
28K SLoC

commonware-vrf

Crates.io Docs.rs

Generate bias-resistant randomness with untrusted contributors using commonware-cryptography and commonware-p2p.

Usage (3 of 4 Threshold)

To run this example, you must first install Rust.

Arbiter

cargo run --release -- --me 0@3000 --participants 0,1,2,3,4 --contributors 1,2,3,4

Contributor 1

cargo run --release -- --bootstrappers [email protected]:3000 --me 1@3001 --participants 0,1,2,3,4  --arbiter 0 --contributors 1,2,3,4

Contributor 2

cargo run --release -- --bootstrappers [email protected]:3000 --me 2@3002 --participants 0,1,2,3,4  --arbiter 0 --contributors 1,2,3,4

Contributor 3

cargo run --release -- --bootstrappers [email protected]:3000 --me 3@3003 --participants 0,1,2,3,4  --arbiter 0 --contributors 1,2,3,4

Contributor 4 (Corrupt)

Send invalid dealings to contributors.

cargo run --release -- --corrupt --bootstrappers [email protected]:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4

Contributor 4 (Lazy)

Only send 2f dealings to contributors (force reveal f).

cargo run --release -- --lazy --bootstrappers [email protected]:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4

Contributor 4 (Forger)

Forge acknowledgements from contributors.

cargo run --release -- --forger --bootstrappers [email protected]:3000 --me 4@3004 --participants 0,1,2,3,4 --arbiter 0 --contributors 1,2,3,4

Dependencies

~25–40MB
~703K SLoC

OSZAR »