Files
serai/coordinator
Luke Parker b5a6b0693e Add a proper error type to ContinuallyRan
This isn't necessary. Because we just log the error, we never match off of it,
we don't need any structure beyond String (or now Debug, which still gives us
a way to print the error). This is for the ergonomics of not having to
constantly write `.map_err(|e| format!("{e:?}"))`.
2025-01-12 18:29:08 -05:00
..
2025-01-11 05:13:43 -05:00
2025-01-11 04:14:21 -05:00
2025-01-11 05:13:43 -05:00

Coordinator

  • tendermint is an implementation of the Tendermint BFT algorithm.

  • tributary-sdk is a micro-blockchain framework. Instead of a producing a blockchain daemon like the Polkadot SDK or Cosmos SDK intend to, tributary is solely intended to be an embedded asynchronous task within an application.

    The Serai coordinator spawns a tributary for each validator set it's coordinating. This allows the participating validators to communicate in a byzantine-fault-tolerant manner (relying on Tendermint for consensus).

  • cosign contains a library to decide which Substrate blocks should be cosigned and to evaluate cosigns.

  • substrate contains a library to index the Substrate blockchain and handle its events.

  • tributary is our instantiation of the Tributary SDK for the Serai processor. It includes the Transaction definition and deferred execution logic.

  • p2p is our abstract P2P API to service the Coordinator.

  • libp2p is our libp2p-backed implementation of the P2P API.

  • src contains the source code for the Coordinator binary itself.