21 releases (8 breaking)

new 0.9.0 Mar 5, 2025
0.7.0 Dec 16, 2024
0.6.0 Nov 14, 2024
0.1.0-rc.4 Jul 24, 2024

#527 in Magic Beans

Download history 4535/week @ 2024-11-18 4047/week @ 2024-11-25 3869/week @ 2024-12-02 3926/week @ 2024-12-09 4848/week @ 2024-12-16 464/week @ 2024-12-23 1824/week @ 2024-12-30 4548/week @ 2025-01-06 4926/week @ 2025-01-13 3912/week @ 2025-01-20 2748/week @ 2025-01-27 2712/week @ 2025-02-03 4877/week @ 2025-02-10 3969/week @ 2025-02-17 2742/week @ 2025-02-24 6766/week @ 2025-03-03

18,397 downloads per month
Used in 47 crates (8 directly)

MIT/Apache

505KB
11K 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–31MB
~533K SLoC