20 releases (7 breaking)

0.8.0 Jan 20, 2025
0.7.0 Dec 16, 2024
0.6.0 Nov 14, 2024
0.1.0-rc.4 Jul 24, 2024

#686 in Magic Beans

Download history 9818/week @ 2024-10-12 10966/week @ 2024-10-19 9246/week @ 2024-10-26 6092/week @ 2024-11-02 6192/week @ 2024-11-09 4780/week @ 2024-11-16 4152/week @ 2024-11-23 3917/week @ 2024-11-30 3897/week @ 2024-12-07 4793/week @ 2024-12-14 470/week @ 2024-12-21 1847/week @ 2024-12-28 4090/week @ 2025-01-04 5010/week @ 2025-01-11 4343/week @ 2025-01-18 2738/week @ 2025-01-25

16,548 downloads per month
Used in 47 crates (8 directly)

MIT/Apache

415KB
9K SLoC

This module provides the roles of the nodes in the network.

The roles are:

  • Node: a node that participates in the gossip network, so it receives and broadcast blocks, helps with peer discovery, etc. Every node has this role.
  • Validator: a node that participates in the consensus protocol, so it votes for blocks and produces blocks. It also participates in the validator network, which is a mesh network just for validators. Not every node has this role.
  • Attester: a node that signs the L1 batches and broadcasts the signatures known as votes to the gossip network. Not every node has this role.

Dependencies

~19–30MB
~523K SLoC