Skip to main content

Crate zaun_community_protocol

Crate zaun_community_protocol 

Source
Expand description

Zaun community protocol (docs/community-protocol/specification.md).

Pure data and functions: identifiers, canonical encoding, RFC 10073 composite post-quantum signatures, signed objects, permissions, envelopes, commands, events and limits. No I/O, no clock (time is always a parameter), no dependency on simplex-client (ADR-0001, ADR-0012).

Modules§

b64
Strict base64url without padding (specification §2).
bits
The permission bitfield (permissions.md §1). Bit positions are frozen once released.
client
Sans-IO protocol client (specification §5–§10): one Session per connection to one host, plus signing helpers for community owners (owner) and members (member).
command
Command bodies and their responses (specification §6.2, §8, §10).
crypto
RFC 10073 composite signatures, suite 1 id-MLDSA65-Ed25519-SHA512 (specification §2, §3.2–3.5, ADR-0011).
encoding
Canonical binary encoding of signed objects (specification §3.1, ADR-0006).
envelope
Envelopes (specification §7) and error bodies (§11).
error_code
Error codes (specification §11). The envelope module builds error bodies around these.
event
Event bodies (specification §9): the §9.2 catalogue, the stream of each event, and decoding that ignores unknown event types (§9.4).
framing
Transport framing over SimpleX direct connections (specification §5).
ids
Identifiers (specification §2).
json
JSON conventions shared by every module (specification §2, §3.6, §7).
keys
Public key and signature encodings (specification §3.2, §3.4). Only the byte layout and suite check live here; signing and verification are in the crypto module.
limits
Protocol limits (specification §5.2, §10.5, §12). Hosts may be stricter and report the effective values in session.welcome.limits.
model
Enumerations shared by permissions, wire bodies and the engine.
permissions
Permission resolution and the management hierarchy (permissions.md).
signed
Signed objects (specification §4.1–4.6).