Skip to content

Private networks

A data directory can run in a private network of its own instead of the public BNW network. Only nodes holding the network’s key connect. An organization’s members, records, policy, and audit then stay among them.

Terminal window
bnw --data-dir ~/.bnw-acme init # a new data directory
bnw --data-dir ~/.bnw-acme network create "Acme" --relay <RELAY>
bnw --data-dir ~/.bnw-acme network link # bnw:network/<id>?name=…&key=…&relay=…
# each member, also in a new data directory:
bnw --data-dir ~/.bnw-acme network join <LINK>
bnw --data-dir ~/.bnw-acme node start
  • One network for good. A data directory is public or in one private network, and nothing bridges the two.
    • It joins or creates a network only while it holds nothing but its own records, so public data never enters the network.
    • It can’t leave, so the network’s data never reaches the public network.
    • To use both, run two nodes with two data directories.
  • Who gets in. Every BNW protocol name and gossip topic inside the network carries a tag derived from the key. A node without the key can’t even negotiate identify, sync, or Kademlia with a member, nor see which protocols it speaks.
    • Right after connecting, both sides prove they hold the key with a keyed BLAKE3 proof over a fresh challenge and both peer IDs. The key itself never crosses the wire.
    • Until a peer proves it, it gets no gossip and no answers. A peer that doesn’t prove it within 10 seconds is disconnected.
  • Relays. The network’s nodes never use the public relays. Any node of the network can be its relay (node start --relay-server). deploy/relay shows how to run one on a server, joining the network from a secret on first start. Members connect to the relays and bootstrap addresses the link names.
  • The link is the key. Anyone holding the bnw:network/… link is inside. The CLI and the web client warn so, and the web client sends it only to contacts in an encrypted direct message.
  • Several organizations in one network. A network isn’t tied to an organization: a company can run one network with an organization per department, or partners can agree to share one.
    • Everyone in the network sees every organization’s record, members, and policy, and that audit reports exist.
    • They don’t see report contents, direct messages, or members-only channels.
    • Parties who shouldn’t see even that use separate networks.
  • A public storefront. To also offer capabilities publicly, an organization runs a second, public node with its own public identity. That node offers selected capabilities backed by the same MCP server, REST API, or model the private nodes use. The two nodes share only that backend: no BNW records cross, and internal members, policy, and audit stay inside.
  • Not yet: the iPhone app stays on the public network.
  • The web client shows the network on Home. The local API operations are private-network-status and private-network-link.