38 major breaking releases

new 40.0.0 Apr 3, 2025
39.0.0 Jan 7, 2025
38.0.0 Sep 25, 2024
37.0.0 Jul 18, 2024
2.0.0 Sep 25, 2020

#714 in Magic Beans

Download history 20255/week @ 2024-12-17 5990/week @ 2024-12-24 12877/week @ 2024-12-31 21364/week @ 2025-01-07 33502/week @ 2025-01-14 27135/week @ 2025-01-21 24065/week @ 2025-01-28 27615/week @ 2025-02-04 34728/week @ 2025-02-11 30049/week @ 2025-02-18 4490/week @ 2025-02-25 2722/week @ 2025-03-04 3777/week @ 2025-03-11 2244/week @ 2025-03-18 2865/week @ 2025-03-25 1730/week @ 2025-04-01

11,197 downloads per month
Used in 15 crates (via polkadot-sdk)

Apache-2.0

67KB
967 lines

Node authorization pallet

This pallet manages a configurable set of nodes for a permissioned network. Each node is identified by a PeerId (i.e. Vec<u8>). It provides two ways to authorize a node,

  • a set of well known nodes across different organizations in which the connections are allowed.
  • users can claim the ownership for each node, then manage the connections of the node.

A node must have an owner. The owner can additionally change the connections for the node. Only one user is allowed to claim a specific node. To eliminate false claim, the maintainer of the node should claim it before even starting the node. This pallet uses offchain worker to set reserved nodes, if the node is not an authority, make sure to enable offchain worker with the right CLI flag. The node can be lagged with the latest block, in this case you need to disable offchain worker and manually set reserved nodes when starting it.

Dependencies

~23–39MB
~652K SLoC