Crate sc_authority_discovery[][src]

Expand description

Substrate authority discovery.

This crate enables Substrate authorities to discover and directly connect to other authorities. It is split into two components the Worker and the Service.

See Worker and Service for more documentation.

Structs

Service to interact with the crate::Worker.

An authority discovery Worker can publish the local node’s addresses as well as discover those of other nodes via a Kademlia DHT.

Configuration of Worker.

Enums

Role an authority discovery Worker can run as.

Traits

NetworkProvider provides Worker with all necessary hooks into the underlying Substrate networking. Using this trait abstraction instead of [sc_network::NetworkService] directly is necessary to unit test Worker.

Functions

Create a new authority discovery Worker and Service.

Same as new_worker_and_service but with support for providing the config.