demo

command
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: Apache-2.0, MIT Imports: 9 Imported by: 0

README

Local demo of drand

This folder contains code that spins up drand nodes in the same way as in a real world deployment. It uses real processes as drand instances and uses the CLI commands.

What the demo is doing

It prints out many information on its standard output so you can see what are the steps the demo is performing:

  • Setting a up a new network from scratch (running the DKG)
  • Getting some beacons
  • Stopping a node and checking network is still alive
  • Getting node back and checking it has catched up the chain
  • Doing a resharing to an extended group
  • Checking the new network produces valid random beacons

Run the demo

go build && ./demo -build 

You can stop the demo by CTRL-C when ever you want.

Fetching randomness

You can fetch randomness by running the command written out by the demo.

Inspecting nodes

All temporary files are written to /tmp/drand-demo. You can inspect the private key, share, group and log of all nodes in /tmp/drand-demo/node-X/.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL