Skip to main content

Module v2

Module v2 

Source
Expand description

Concord v2 (the upstream CORD specs — github.com/concord-protocol/concord).

Vector’s community protocol. The control-plane engine (the edition hash, fold, roster, and authority algebra) lives in the sibling community:: modules; this one carries the envelope (CORD-01 Private Streams: group-key-signed kind-1059 wraps addressed by authors), the owner anchor (a self-certifying community_id), the invite system (CORD-05), and the Guestbook plane (CORD-02 §5).

Frozen wire constants live in two places: the derivation labels in derive, and the kind registry below (CORD-02 Appendix B). A retired number is burned forever, never reused.

Modules§

changes
Typed changes to a Community: what a refresh folded, told apart by comparing what this device held before it with what it holds after. Local reads only. A session’s first look at a Community is its baseline, so nothing that stood before it reads as new, and a change is reported only when it is news: made since the listener began.
chat
CORD-03 Chat Plane — a Channel’s messages over the v2 stream envelope.
community
The v2 in-memory community — the service/DB working type.
control
The v2 Control Plane (CORD-04 over CORD-01/02).
derive
Concord v2 key derivations — CORD-02 Appendix A. FROZEN.
dissolution
Dissolution — CORD-02 §9.
guestbook
CORD-02 §5 Guestbook Plane — membership motion, coalesced flat.
inbound
v2 inbound bridge — turns opened v2 events into the protocol-agnostic InboundEventHandler callbacks the rest of Vector (and the SDK’s on_message) already consumes, so a bot receives community messages through the same seam as DMs.
invite
CORD-05 Invites — how members are handed the keys that make them members.
kind
Inner rumor kinds (CORD-02 Appendix B). The outer event is always a wrap (stream::KIND_WRAP / stream::KIND_WRAP_EPHEMERAL); these ride inside.
list
The Community List document — CORD-02 §8. The wire form it serializes into lives in super::list_frag.
list_frag
CORD-02 §8 fragmented Community List (kind 33302).
pin_keys
NIP-44 v2 per-message key disclosure — the primitive Pins are built on (CORD-04 §7).
pins
Pins — CORD-04 §7. A pin does not quote a message; it proves one.
realtime
v2 realtime — the authors-based live subscription + dispatch.
rekey
Concord v2 rekeys (CORD-06) — the per-recipient key-delivery atom + the 3303 event that carries a rotation.
roles
CORD-04 Roles: v2 wire content for the Role (vsk 1), Grant (vsk 3), and Banlist (vsk 4) control entities.
seal
A Locked Channel’s sealed history (CORD-03 §1): the wrap ids of what stood at its read address before the lock, which is all a reader fetches from there. Anyone holding the read key can date a wrap into the past; a list fetched by id leaves nothing they add in reach.
service
Concord v2 service — the stateful orchestration binding the pure v2 modules to storage + transport. Free functions, std::sync::Arc<crate::db::Session>-gated at every write (a swap_session can land at any await — see CLAUDE.md).
stream
CORD-01 Private Streams — the Concord v2 envelope.
streamauth
Concord v2 stream-key NIP-42 authentication.
voice
Who is in each voice Channel’s call (CORD-07 §4): the latest presence per author, live while fresh. Presence is ephemeral and never stored, so this lives on the session alone.
volley
Chat-plane volley — the boot paint pass (CONCORD_CHAT_PLANE_VOLLEY_DESIGN.md).
vsk
Control-plane vsk sub-kinds (CORD-02 Appendix B). 7 is retired upstream (an owner attestation, obsoleted by the self-certifying community id).
writers
A restricted Channel’s Writers ledger (CORD-03 §1): which address takes posts when.