Network and roles

This page describes the network that is implemented today. It is not a specification for planned payment or storage services.

Nodes

Every running node is a tierd process with a long-term Ed25519 identity. Its peer ID is the SHA-256 hash of the public key (see Identity model). Nodes talk to each other over QUIC with TLS 1.3 (see Encryption).

A node joins exactly one network and learns its peers from bootstrap seeds and signed membership gossip, with a SWIM-style failure detector. Each node keeps its own bounded view of the network; there is no global list of every client.

Roles

Roles are flags and can be combined on one node. A node with only the client role is an edge node; any other role makes it reachable infrastructure that peers dial and that forms the mesh.

RoleWhat it does today
clientThe default. Dials out to infrastructure and is never dialed. Works behind NAT and needs no open inbound port.
communicatorReachable infrastructure. Keeps short-lived presence records so clients can find each other, coordinates NAT hole punching, and relays sealed messages when no direct connection can be established. Relays forward ciphertext and never get message contents. Not a mailbox: sender and recipient must both be online.
validatorMarks topology only. Payment validation is not implemented, and a self-declared validator role grants no payment authority; that would come from a separately approved validator set. The planned role is described in Zero-knowledge payments.
keeperDefined for persistent storage. The service is not implemented.
transmitterDefined for block relay. The service is not implemented.

A role name alone does not enable a service that is not implemented. Any node meant to be reachable infrastructure, including every seed, must hold a non-client role: otherwise role-aware autodial does not mesh it with peers it learns by gossip.

Presets

A preset is a named, code-controlled set of roles and the recommended way to choose a role. When a role is later added to a preset in the software, nodes using that preset pick it up on their next update without a config change. A preset is local configuration only: it resolves to roles and is never sent on the wire.

PresetRolesUse
clientclientThe default edge node.
validatorclient, validator, transmitter, communicatorBackbone node that also serves client-to-client messaging: presence, hole-punch signaling, relay fallback.
ganeshaall rolesExperimental, operated by the project to try new roles on mainnet. Do not use for a normal node.

A validator must be reachable: a routable address and an open UDP port, without NAT. Keep it always on and low-latency. Explicit roles are the advanced alternative to a preset; see Configuration.

Discovery and delivery

Plain clients are never dialed and are not gossiped, so two clients cannot find each other through membership alone. To be reachable, a client publishes an owner-signed presence record (its addresses and encryption keys) to the communicators responsible for its ID.

  • Responsibility is assigned by rendezvous hashing (highest random weight): the responsible communicators for an ID are those with the highest score of a hash over the communicator ID and the target ID. Each record is stored on 2 communicators so that losing one does not lose it. The registrant and the resolver compute the same set from the gossiped communicator list, and adding or removing a communicator only reassigns the IDs that hashed to it.
  • A resolver asks the same communicators and verifies the returned record itself: the identity key must hash to the claimed ID and the signature must verify. Nothing in a record is trusted on the communicator's word.
  • The client then tries a direct QUIC connection. Hole punching helps when both clients are behind NAT. If no direct path can be established, a communicator relays the end-to-end sealed message.

Application messages are online-only. The recipient application must be connected and subscribed when a message arrives; the network does not retain messages for offline users. A messenger delivery receipt means delivery to a live subscriber, not that a person has read the message.

Network isolation

A node joins exactly one network (cluster). The default is mainnet. The network name is part of the QUIC/TLS handshake (ALPN tier/0/<network>), so nodes on different networks cannot complete the handshake, even if they share a seed address. The network name is also bound into signed records and messages, so they cannot be replayed into another network.

Example of a private network, set on every node:

# /etc/tier/tierd.toml
network = "lab"
seeds = ["10.0.0.10:7777", "10.0.0.11:7777"]

Network names use lowercase letters, digits, and hyphens, 1 to 32 characters. The mainnet bootstrap seeds are compiled into the release binary; other networks have none. seeds replaces the compiled list completely, and an empty list leaves the node isolated rather than falling back to mainnet. The seeds of a private network must hold a non-client role.

Version policy

A network can restrict which software versions participate. The window is min,max with an inclusive lower and exclusive upper bound: 1.4.0,1.5.0 accepts every 1.4.x and rejects 1.5.0. Either side may be empty. A node outside the window refuses to start; a gossiped peer outside it is not admitted. tierd networks prints the policy compiled into the running binary; private networks have none unless an operator sets version_range.

This is an operator compatibility policy, not a security boundary: versions are self-reported.