20 releases (7 breaking)

new 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

#90 in Magic Beans

Download history 7069/week @ 2024-10-01 13107/week @ 2024-10-08 9880/week @ 2024-10-15 10379/week @ 2024-10-22 8461/week @ 2024-10-29 6306/week @ 2024-11-05 6619/week @ 2024-11-12 4258/week @ 2024-11-19 3749/week @ 2024-11-26 3942/week @ 2024-12-03 3779/week @ 2024-12-10 4514/week @ 2024-12-17 818/week @ 2024-12-24 2292/week @ 2024-12-31 4499/week @ 2025-01-07 4032/week @ 2025-01-14

11,737 downloads per month
Used in 43 crates (7 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
~524K SLoC