37 major breaking releases

new 39.0.0 Jan 7, 2025
38.0.0 Sep 25, 2024
37.0.0 Jul 18, 2024
36.0.0 Jul 12, 2024
2.0.0 Sep 25, 2020

#20 in #claim

Download history 43/week @ 2024-09-16 230/week @ 2024-09-23 55/week @ 2024-09-30 46/week @ 2024-10-07 112/week @ 2024-10-14 177/week @ 2024-10-21 215/week @ 2024-10-28 249/week @ 2024-11-04 20196/week @ 2024-11-11 24318/week @ 2024-11-18 27435/week @ 2024-11-25 22197/week @ 2024-12-02 26928/week @ 2024-12-09 21365/week @ 2024-12-16 5226/week @ 2024-12-23 11364/week @ 2024-12-30

66,870 downloads per month
Used in 10 crates (via polkadot-sdk)

Apache-2.0

3MB
47K SLoC

Release

Polkadot SDK Stable 2412


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–31MB
~523K SLoC