36 major breaking releases

38.0.0 Sep 25, 2024
37.0.0 Jul 18, 2024
36.0.0 Jul 12, 2024
35.0.0 Jun 21, 2024
2.0.0 Sep 25, 2020

#22 in #claim

Download history 5/week @ 2024-07-25 35/week @ 2024-09-12 60/week @ 2024-09-19 212/week @ 2024-09-26 38/week @ 2024-10-03 99/week @ 2024-10-10 144/week @ 2024-10-17 180/week @ 2024-10-24 282/week @ 2024-10-31 10054/week @ 2024-11-07

10,696 downloads per month
Used in 8 crates (via polkadot-sdk)

Apache-2.0

2.5MB
43K SLoC

Release

Polkadot SDK stable2409


lib.rs:

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

~18–33MB
~535K SLoC