19 releases (6 breaking)

new 0.7.0 Dec 16, 2024
0.6.0 Nov 14, 2024
0.5.0 Oct 9, 2024
0.1.0-rc.4 Jul 24, 2024

#313 in Magic Beans

Download history 13598/week @ 2024-08-28 12690/week @ 2024-09-04 14615/week @ 2024-09-11 6506/week @ 2024-09-18 6368/week @ 2024-09-25 8085/week @ 2024-10-02 12516/week @ 2024-10-09 9686/week @ 2024-10-16 11089/week @ 2024-10-23 7577/week @ 2024-10-30 6602/week @ 2024-11-06 6206/week @ 2024-11-13 3787/week @ 2024-11-20 4254/week @ 2024-11-27 3601/week @ 2024-12-04 3030/week @ 2024-12-11

15,721 downloads per month
Used in 43 crates (7 directly)

MIT/Apache

420KB
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–29MB
~515K SLoC