drand_core 0.0.2

[ALPHA] A drand client library.
Documentation

drand-core: Rust implementation of drand

Documentation License crates.io

drand-rs is a tool to retrieve public randomness generated by drand beacon. It features an HTTP client, and verification method.

The format specification is at drand.love/docs/specification. drand was designed in Scalable Bias-Resistant Distributed Randomness.

The reference interroperable Go implementation is available at drand/drand.

Usage

use drand_core::{chain, http_chain_client};

let chain = chain::Chain::new("https://drand.cloudflare.com");

use chain::ChainClient;
let client = http_chain_client::HttpChainClient::new(chain, None);

let latest = client.latest().await?;