commonware-vrf 0.0.63

Generate bias-resistant randomness with untrusted contributors using commonware-cryptography and commonware-p2p.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod arbiter;
mod contributor;
mod vrf;

pub use arbiter::Arbiter;
pub use contributor::Contributor;
pub use vrf::Vrf;

/// The channel used for DKG messages.
pub const DKG_CHANNEL: u64 = 0;

/// The channel used for VRF messages.
pub const VRF_CHANNEL: u64 = 1;

/// The namespace used for DKG ack signatures.
pub const ACK_NAMESPACE: &[u8] = b"DKG_ACK";

mod wire;