Registry / crypto / drand-drand

drand-drand

JSON →
library1.5.11gogounverified

A distributed randomness beacon daemon and client library providing publicly verifiable, unpredictable random numbers.

go get github.com/drand/drand
INSTALL
IMPORT
SIG · DRAND-DRAND
D
drand-drand
cryptogov1.5.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

drand
github.com/drand/drand

Fetch a random beacon from the drand network

package main import ( "fmt" "github.com/drand/drand/client" ) func main() { c, err := client.New(client.FromURL("https://api.drand.sh")) if err != nil { panic(err) } random, err := c.Get(context.Background(), 1) if err != nil { panic(err) } fmt.Printf("Randomness: %x\n", random.Randomness) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.11latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Resources
drand-drand — go get drand-drand · libregistry