17 releases (4 breaking)

0.5.0 Oct 9, 2024
0.4.0 Oct 9, 2024
0.3.0 Sep 26, 2024
0.2.0 Sep 24, 2024
0.1.0-rc.4 Jul 24, 2024

#226 in Magic Beans

Download history 4102/week @ 2024-07-04 4217/week @ 2024-07-11 6053/week @ 2024-07-18 12645/week @ 2024-07-25 8849/week @ 2024-08-01 9070/week @ 2024-08-08 12619/week @ 2024-08-15 15543/week @ 2024-08-22 14028/week @ 2024-08-29 11041/week @ 2024-09-05 13275/week @ 2024-09-12 6365/week @ 2024-09-19 6750/week @ 2024-09-26 9777/week @ 2024-10-03 9260/week @ 2024-10-10

33,467 downloads per month
Used in 43 crates (7 directly)

MIT/Apache

395KB
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

~20–30MB
~520K SLoC