Wire format (internal/message): sealed boxes to the listing's device key
(X25519 + HKDF + ChaCha20-Poly1305), padded, proof-of-work stamped, with
signed owner replies and address grants. Relay validation, bounded queues,
gossip on per-region message topics and sync (store, p2p).
Owner side (internal/inbox, API): inbox with hidden link messages and a
per-day new-thread limit, replies, grants, and a private per-listing
address. Public POST/GET /api/v1/messages for buyers.
Browser: noble-based sealing and reply verification checked against a Go
fixture, contact form, conversation view, message list, de/en strings.
Docs: PROTOCOL.md messaging section matches the implementation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- cmd/node: init (recovery phrase onboarding), run, recover
- api: public reads of canonical signed records, token-protected writes
- identity: RevokeAll voids every device certified before a cutoff, so
recovery works with only the phrase; store purges by certificate age
- p2p: redial bootstrap peers, sync on every new connection (in-flight
guard only), validate bootstrap addresses up front
- docs: API, recovery semantics, peer-ID change on recovery
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- identity: 12-word recovery phrase, device certificates, revocations,
device key storage; the identity key is never stored on a node
- listing: signed by a device with an embedded certificate, domain-separated
signatures, ErrTimeWindow for clock-related failures, region helpers
- store: revocations purge a device's listings; keyset-paged Since for sync
- p2p: gossipsub topic per geohash region plus a global revocation topic,
validators run before relaying, /allmende/1/sync catch-up protocol,
bootstrap peers and mDNS
- docs: key model, replication and conflict rules
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>