1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! # Distrand
//!
//! Distrand is a library for ***dist***tributed ***rand***om 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.

#![deny(missing_docs)]

extern crate bincode;
extern crate crypto_mac;
#[macro_use]
extern crate error_chain;
pub extern crate rand;
extern crate serde;
extern crate typenum;

mod commit;
pub mod errors;
mod exchange;
mod reveal;
mod secret;

pub use commit::Commit;
pub use exchange::Exchange;
pub use reveal::Reveal;
pub use secret::Secret;