Crate distrand

Source
Expand description

§Distrand

Distrand is a library for disttributed random value generation.

It uses a simple commit-reveal algorithm that is suitable for small numbers of participants. Each participant must communicate with every other participant, so the number of messages increases dramatically as the number of participants increases.

See the examples directory for a tutorial.

Re-exports§

pub extern crate rand;

Modules§

errors
Error and result types for the library.

Structs§

Commit
A commitment to a particular Secret.
Exchange
Collects Commit instances from participants.
Reveal
Collects Secret instances from participants and verifies them against previously collected Commit instances.
Secret
An individual participant’s contribution to a randomly generated number.