Expand description
The one node-id derivation (ADR-103 D11). The one node-id derivation (ADR-103 D11, ADR-025).
node_id = hex(SHA-256(ed25519 pubkey)[..16]): 32 lowercase hex
characters. Every place that names a node (mesh handshake, cluster
membership, heartbeats, chain event sources, status RPC, substrate
<node-id> path segments, leaf registration) uses this value. Do
not hash a pubkey into an id anywhere else.
Constants§
- NODE_
ID_ BYTES - Number of hash bytes kept in a node id (16 bytes = 32 hex chars).
- NODE_
ID_ HEX_ LEN - Length of a node id in hex characters.
Functions§
- is_
node_ id - True when
shas the shape of a node id produced bynode_id_from_pubkey(32 lowercase hex characters). - node_
id_ from_ pubkey - Derive the node id from an Ed25519 public key.