package
0.0.0-20240304024945-61087e2b78e0
Repository: https://github.com/onenesslabs/genie.git
Documentation: pkg.go.dev
# Packages
Package client provides a drand client implementation that retrieves
randomness by subscribing to a libp2p pubsub topic.
# Functions
ConstructHost build a libp2p host configured for relaying drand randomness over pubsub.
LoadOrCreatePrivKey loads a base64 encoded libp2p private key from a file or creates one if it does not exist.
NewGossipRelayNode starts a new gossip relay node.
ParseMultiaddrSlice parses a list of addresses into multiaddrs.
PubSubTopic generates a drand pubsub topic from a chain hash.
# Structs
GossipRelayConfig configures a gossip relay node.
GossipRelayNode is a gossip relay runtime.