[][src]Crate sc_authority_discovery

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

Service to interact with the [Worker].

Worker

A Worker makes a given authority discoverable and discovers other authorities.

Enums

Role

Role an authority discovery module can run as.

Traits

NetworkProvider

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

Functions

new_worker_and_service

Create a new authority discovery Worker and Service.