Crate noble_node_authorization[][src]

Node authorization noble

This noble manages a configurable set of nodes for a permissioned network. Each node is dentified by a PeerId (i.e. Vec). 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 noble 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.

Re-exports

pub use $crate::traits::GetNobleVersion as _;

Structs

AdditionalConnections

The additional adapative connections of each node.

GenesisConfig

Genesis config for the module, allow to build genesis storage.

Module
Owners

A map that maintains the ownership of each node.

WellKnownNodes

The set of well known nodes. This is stored sorted (just by value).

Enums

Call

Dispatchable calls.

Error

Error for the node authorization module.

RawEvent

Events for this module.

Traits

Config
WeightInfo

Type Definitions

Event

RawEvent specialized for the configuration Config