In a peer-to-peer mesh, there is no login server, no domain registrar, and no company vouching for who is on the other end of a wire. Layer 1 replaces institutional trust with seven open cryptographic building blocks so any two strangers can verify every byte, prove identity, encrypt conversations, and hide metadata.
1.0 · Layer 1 Big Picture
On the corporate web, you connect to a server first and prove who you are second (by typing a password into someone else’s database). In a mesh, you might receive a file from a stranger’s home Raspberry Pi or route an encrypted message across three relays you have never met. That only works safely if integrity, identity, confidentiality, and metadata privacy live inside the data itself.
The Concept
A cryptographic hash function like SHA-256 is a deterministic blender: feed in a single word, an entire movie, or a JSON schema, and it always outputs a fixed 32-byte (64-hex-character) fingerprint. You can never un-blend the fingerprint back into the input, and changing even one bit causes an avalanche that flips roughly half of all 256 output bits.
FleetMesh Implementation
schema/DIGEST): All 80 wire schemas hash to one canonical digest (fleetmesh/0.1-draft@1c1bdc73471892dd...) checked at handshake time.r0 → r1), builds 1 KB Bao Merkle trees, drives HKDF-SHA256, and powers optional 20-bit NIP-13 PoW on descriptors.The Concept
Every participant generates a matched pair of numbers: a private key (kept strictly on your own machine) and a public key (shared freely like a mailbox address). Your private key stamps a mathematical wax seal — a signature — onto every message. Anyone holding your public key can check that seal offline in microseconds, without ever learning your private key.
FleetMesh Implementation
kind 11801 descriptor.secp256k1, 0xe7): Compact 64-byte signatures over 32-byte x-only pubkeys (also makes FROST threshold signatures look identical!).kind 11802 revocations retire keys and optionally hand off to a successor pubkey.The Concept
A Decentralized Identifier (DID) is a globally unique URI — like
did:nostr:82341f88… — that you mint yourself offline. It resolves to a structured
DID Document listing your public keys and reachable network endpoints, without asking a
domain registrar, ICANN, or a certificate authority for permission.
FleetMesh Implementation
did:nostr (Canonical): The node’s 32-byte x-only secp256k1 pubkey — single source of truth.did:key & did:peer:2 (Derived): Deterministic multicodec re-encodings of descriptor keys so standard DIDComm & VC libraries work unchanged.did:group, did:web & did:plc: Equal-peer Circles (kind 30834), web domains, and AT Protocol handles.The Concept
TLS only encrypts the pipe between two directly connected sockets — if a message hops through an offline relay, TLS terminates at the relay. DIDComm v2 encrypts the letter inside the envelope itself, addressed by DID rather than IP address, so it stays confidential and tamper-proof no matter how many relays, queues, or transports carry it.
FleetMesh Implementation
ECDH-1PU+A256KW + A256CBC-HS512 over X25519 (NIST SP 800-56A Concat KDF + RFC 3394 AES Key Wrap) — proves sender authenticity.ECDH-ES+A256KW before a peer reveals itself.didcomm.org): Carries peering/1.0, budget/1.0, sync/1.0, complaint/1.0, standing/1.0, control/1.0, plus 8 upstream DIF protocols (including coordinate-mediation/2.0 & messagepickup/2.0) and 3 app protocols (grasp/1.0, ncontainer/1.0, magpie/1.0).The Concept
Why does a mesh use more than one cipher? Because encrypting a tiny JSON event on a public relay, sealing a 100 MB shared Circle video, and negotiating a live UDP datagram tunnel have completely different constraints (padding, nonce size, forward secrecy, streaming overhead). FleetMesh uses AEAD (Authenticated Encryption with Associated Data) or Encrypt-then-MAC everywhere so corrupted ciphertext is rejected before decryption ever touches your app.
FleetMesh Implementation
secp256k1 ECDH → HKDF-SHA256 → ChaCha20 + HMAC-SHA256 with power-of-2 length padding.@fleetmesh/circles) and live LLM token stream frames.Noise IK / XK (FIPS), TLS 1.3 (WSS), and SSB SHS + Box Stream. The opt-in iroh_rung wire itself is neither encrypted nor authenticated—confidentiality comes from the inner DIDComm JWE envelope.The Concept
Even if you lock a postcard inside a steel box, writing “From: Alice, To: Bob, Sent: 3:14 PM” on the outside tells every post office who your friends are and when you talk. NIP-59 Gift Wrap puts your message inside three nested Russian-doll envelopes, signed on the outside by a brand-new throwaway key with a fuzzed timestamp so relays route it completely blind.
FleetMesh Implementation
1059 & 21059: Carries offline DIDComm messages, NIP-17 DMs, and remote control/1.0 operator commands from meshctl.kind 10050 inbox relays.The Concept
Blinding lets a third party store, index, or even sign something without knowing what is inside or who it belongs to. Imagine putting a contract inside a carbon-paper envelope: a notary stamps the outside, the signature transfers onto the document inside, and when you later show the signed document, even the notary cannot tell which envelope it came from.
FleetMesh Implementation
d-tags (Core): HKDF-SHA256(ECDH_x, "fleetmesh/grant/1", "fleetmesh/grant-tag/1") hides peering graphs on kind 30801 & 30811.B_ = Y + rG → C_ = kB_ → C = C_ - rK (+ NUT-12 DLEQ proofs) for unlinkable bearer ecash.fleetmesh_protocols.circles.blinding.