18 major breaking releases
new 20.0.0 | Mar 26, 2023 |
---|---|
19.0.0 | Mar 5, 2023 |
18.0.0 | Feb 26, 2023 |
17.0.0 | Feb 19, 2023 |
2.0.0 | Sep 25, 2020 |
#850 in Magic Beans
112 downloads per month
2MB
35K
SLoC
pallet-node-authorization
Auto-generated README.md for publishing to crates.io
lib.rs
:
Node authorization pallet
This pallet manages a configurable set of nodes for a permissioned network.
Each node is dentified 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
~8–44MB
~747K SLoC