Skip to main content

Module network_id

Module network_id 

Source
Expand description

Typed Swarm network identifier.

NetworkId is mixed into the overlay address (see compute_overlay) so that a single keypair derives a different overlay on each network. This is the Swarm-wide partitioning mechanism inherited from bee (see pkg/crypto/crypto.go:45-57 for the derivation, and pkg/swarm/swarm.go for canonical IDs).

Structsยง

NetworkId
Swarm network identifier (u64 wire-compatible with bee).