Skip to documentation
SLOP

tiny.peer

Reference tiny.peer

Overview · API · Code relationships · Verification · Audit

Overview

Provides peer identities, network addresses, and bootstrap tickets used to find other nodes. A node is named by an Ed25519 public key stored as 32 bytes and represented in text as 43 base64url characters: the peer identifier. Because this key names the node itself, identity remains valid wherever the node is reachable.

An address represents an endpoint as an IPv4 or IPv6 address with a port, or a relay host name with a port. Nodes exchange addresses using a ticket, a bootstrap record prefixed with tiny-peer: in text that pairs one peer identifier with a list of address hints. Nothing in a ticket is signed or authenticated. Verifying the peer key and securing the session belong to the transport handshake that runs later.

The caller selects the address capacity for a ticket and supplies the backing storage. Because operations write into caller buffers, encoding and decoding allocate nothing.

Definitions

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

Code relationships

Direct static dependencies extracted from parsed source by semantic graph analysis.

Uses: tiny.chant, tiny.hypothesis
Used by: tiny.preserves

Verification

No verification records are cataloged for this module in this build.

Audit

EvidenceValue
Sourcelib/peer/src/root.zig
Definitions1 of 13 documented
Members0 of 0 documented
Public names13 API, 60 indexed
Version26.7.0
Revisiondaab053ee433