Protocol definition / v1 + hybrid PQ
Protocol definition.
Four trust boundaries.
Proxeny enforces membership, budgets, and governance without building a central member roster. It splits state across four independent boundaries, binds keys deterministically from a 12-word recovery phrase, decouples standing from membership commitments with blind RSA tokens, and authorizes anonymous actions with Semaphore v4 Groth16 proofs.
01 / Actors, origins & state separation
Four boundaries that never share a join key.
The Member PWA, Standing Directory, and Blind Coordinator run on separate web origins. A 3-of-5 Steward Quorum holds separate threshold decryption shares. No durable table in the stack joins a real-world person reference to an active membership leaf C_e.
| Boundary | Durable state held | Explicitly excluded | Enforcement |
|---|---|---|---|
| Member device (PWA) | 12-word BIP-39 entropy (optional passkey/password wrap), pinned F / F_pq, IndexedDB checkpoint pins, local category preferences, saved @handle contacts. |
Other members’ recovery keys or directory pseudonyms; unrevealed contact packages. | Static bundle verified against pinned manifest fingerprints; client-side proving and trial decryption. |
| Standing Directory | Random pseudonym_id, auth_pubkey, standing (active / revoked), blind-issuance ledger, encrypted escrow blobs, epoch RSA private keys & board keys, moderator/admin lists. |
Membership commitments C_e, LeanIMT leaf positions, Groth16 proofs, nullifiers, and plaintext person_ref. |
RFC 8032 Ed25519 challenge-response auth; deterministic one-token-per-epoch issuance transaction. |
| Blind Coordinator | Pinned manifests, epoch RSA public keys, spent token digests, pending & sealed C_e, append-only log, dual-signed checkpoints, scoped nullifiers, padded ciphertexts, personas. |
Names, emails, person_ref, pseudonym_id, auth_pubkey, board decryption keys, and plaintext payloads. |
Origin-locked CORS, atomic SQLite transactions in Rust, native ark-groth16 proof & strict Ed25519 checks. |
| Steward quorum (3-of-5) | Individual steward X-Wing decryption keys and Ed25519 + ML-DSA-65 signing keys for threshold escrow recovery and standing revocation. | Coordinator state, epoch membership commitments C_e, activity logs, and nullifiers. |
GF(256) Shamir threshold wrapping under 1216 B X-Wing keys; dual-signature revocation check. |
Transport & admin separation. Member writes accept only the configured Member origin; Coordinator admin routes (/v1/admin/epochs, /seal, /hide, /mute-persona, /unmute-persona, /policy) require an Ed25519 signature over ["proxeny-admin-v1", "steward:" + D, method, path, timestamp, nonce, sha256(raw_body)] within a 300-second replay-protected window.
02 / Identity & key derivation hierarchy
One 12-word phrase.
Domain-separated keys per role and epoch.
A 12-word English BIP-39 mnemonic encodes 16 bytes of entropy on the member device. Every key is derived via HKDF-SHA-256 with a fixed salt and compact JSON context array, binding each derived secret to deployment ID D, purpose, and epoch e.
Deterministic derivation tree
Directory authentication keys remain distinct from epoch Semaphore identities and deterministic blind factors, so a device can always retry interrupted issuance or recover sent history from the phrase alone.
# Fixed domain salt:
SALT = SHA256(UTF8("introducer/hkdf/v1"))
# Derived 32-byte secrets from 16 B BIP-39 entropy:
directory_auth = HKDF(entropy, [D, "directory-auth", 1])
membership_e = HKDF(entropy, [D, "membership-epoch", 1, e])
renewal_blind_e = HKDF(entropy, [D, "renewal-blind", 1, e])
frozen_baseline = HKDF(entropy, [D, "membership", 1])
# Epoch Semaphore v4 identity commitment:
identity_e = SemaphoreIdentity(membership_e)
C_e = Poseidon2(identity_e.publicKey)
Device custody & pin verification
The PWA never uploads recovery material or passkey secrets. Local persistence wraps the 16-byte entropy locally and guards checkpoint rollback using compare-and-swap.
# Optional local unlock wrapping (never leaves device):
Passkey PRF → WebAuthn PRF secret → AES-256-GCM wrap
Passphrase → PBKDF2-SHA-256 → AES-256-GCM wrap
Ephemeral → sessionStorage only (cleared on Lock)
# Checkpoint pin in IndexedDB (durability: "strict"):
Key = (D, pinned manifest F)
Value = last fully verified checkpoint envelope
Rule = CAS compare exact old bytes before advancing;
reject shorter, forked, or unpinned roots.
03 / Epoch lifecycle
From invitation to sealed membership in six atomic steps.
Membership rotates on the community’s own epoch cadence. Every transition is transactional at the issuing service and independently auditable by any client replaying public history.
-
Step 01
Onboarding & identity escrow
Communities onboard either via single-use bearer QR invite cards or via an in-person applicant QR carrying the member’s
auth_pubkey. When a registrar registers an identity, the member’sperson_refand randompseudonym_idare encrypted into an opaquev2escrow envelope decryptable only by 3-of-5 stewards.Invite digest:
SHA256(["proxeny-invite-v1", D, code])· Claim signature:["proxeny-invite-claim-v1", D, codeHash, auth_pubkey] -
Step 02
Authenticated blind token issuance
In each epoch
e, the member proves possession ofauth_pubkeyvia a challenge nonce and requests one blind signature from the Standing Directory using deterministic blinding derived fromrenewal_blind_e. Exact retries return the recorded blind signature; a second distinct blind in the same epoch is rejected.Issuance payload:
["renewal-issue-v1", D, e, key_id, pseudonym_id, blinded_msg]· Suite:RSABSSA-SHA384-PSS-Deterministic(3072-bit) -
Step 03
Local unblinding & Coordinator redemption
The client unblinds the 384-byte token, verifies the RSA-PSS signature against the pinned epoch manifest key
key_id, and submits(token_msg, token_sig, C_e)to the Coordinator with no directory identifier. The Coordinator atomically records the token hash inspentand insertsC_eintopending.Constraint:
0 < C_e < r(BN254 scalar field) · Rejects duplicate commitments or double-spent token hashes -
Step 04
Whole-pool seal & dual-signed checkpoint
When sealing runs (triggered by an admin or optional auto-seal interval), the Coordinator shuffles the entire
pendingpool, appends every commitment in one batch to the depth-16 Poseidon2 LeanIMT, writes an append entry to the public log, and signs the checkpoint with bothEd25519andML-DSA-65.Invariant:
sealedSpent = memberCount <= minted· Always seals the whole pending pool (no partial cherry-picking) -
Step 05
Full history replay & CAS pin advance
Before generating any Semaphore proof, the client fetches the public history, replays every
mintandappendentry from genesis hashG, reconstructs the LeanIMT root locally, checks strict cofactorless Ed25519 and ML-DSA-65 signatures, and advances its IndexedDB pin via compare-and-swap.Genesis anchor:
G = SHA256(["introducer-genesis-v1", F])· Pinned root matches client-recomputed Merkle tree -
Step 06
Epoch cutover & revocation
Opening epoch
e + 1generates a fresh RSA issuance key and epoch board key, binds the newepoch-manifest-v2in the signed epoch roster, and activates it on the Coordinator. Members whose standing was revoked by quorum cannot obtain a token fore + 1; active members roll to a fresh unlinkable leafC_{e+1}.Roster tag:
["proxeny-epoch-roster-pq-v1", F, F_pq, active, posting_policy, [epoch_fingerprints...]]
05 / Canonical encoding & wire formats
Strict bytes. Fixed-size padded ciphertexts.
Every signed or hashed protocol record is an unpadded UTF-8 JSON array with no BOM, no whitespace, canonical decimal strings for integers, and lowercase hex digests. Verifiers parse, validate, re-encode, and require exact byte equality before accepting signatures.
Trust anchors & public history tags
Domain tags serve as explicit format versions across Rust and JavaScript. Adding ML-DSA-65 payloads uses separate domain-separated tags so legacy fingerprints remain stable.
["introducer-manifest-v1", D, "introducer-identity-tree-v1", K]
["introducer-manifest-pq-v1", D, "introducer-identity-tree-v1", K, K_pq]
["proxeny-pq-key-binding-v1", D, F, F_pq]
["epoch-manifest-v2", D, e, "epoch-derived-v1", K,
"RSABSSA-SHA384-PSS-Deterministic", key_id, opens, closes]
["introducer-log-entry-v1", F, D, P, seq, prev, kind,
batch, minted, sealedSpent, memberCount, root]
["introducer-checkpoint-v1", F, D, P, len, head,
root, memberCount, minted, sealedSpent]
["proxeny-checkpoint-mldsa65-v1", sha256(K_pq), checkpoint]
Padded community payloads & plain-text rules
The Coordinator enforces fixed plaintext padding lengths before AES-256-GCM tags (+16 B) so payload length does not leak category, handle length, or message size. Clients render all user content strictly as plain text.
# Fixed padded plaintext sizes (+16 B AES-GCM tag):
board / boardPq 4096 B / 8192 B
comment / poll 2048 B / 2048 B
response / responsePq 1024 B / 4096 B
mailbox / mailboxPq 2048 B / 4096 B
persona / personaPq 256 B / 2048 B
contact 1024 B
# Client plain-text & link-guard invariants:
Render via textContent (no auto-linkification or previews)
HTTP Referrer-Policy: no-referrer
Optional community policy: links = "plain" | "disallow"
06 / Steward threshold custody & revocation
Accountability without a surveillance database.
When a community requires real-world accountability for onboarding or abuse at the membership boundary, identity escrow is split across a 3-of-5 steward quorum rather than held in cleartext by any server operator.
Threshold escrow (v2)
During registration, the registrar encrypts {person_ref, pseudonym_id} under a fresh 256-bit data encryption key, splits that key with GF(256) Shamir secret sharing, and wraps each share under the respective steward’s 1216 B X-Wing hybrid public key.
Recovering a person reference requires three stewards to decrypt their wrapped shares and reconstruct the DEK. Even then, the recovered record links only person_ref ↔ pseudonym_id—never a Coordinator leaf C_e or activity history.
Quorum standing revocation
Revoking a member’s standing at the Directory requires valid Ed25519 and ML-DSA-65 signatures from threshold stewards bound to deployment D and target pseudonym_id. Revocation halts future epoch blind issuance while preserving anonymity for past actions.
Deployment requirement. The local reference demo stores all five disposable steward shares in one data directory for testing. Production deployments must distribute shares across independent stewards.
07 / Formal models & executable evidence
Checked state machines and cross-language vectors.
Critical state transitions are modeled in TLA+ and checked with TLC, paired with locked cryptographic test vectors across Rust, JavaScript, and Python, plus an executable three-service E2E suite against the real Rust Coordinator.
| Suite / Artifact | What it checks | Scope & source |
|---|---|---|
Enrollment.tla & LogVerification.tla |
71 safety, recovery, reachability, and mutation checks over invitation spending, whole-pool sealing, log append-only integrity, adversarial views, and CAS pin progression. | Finite-state TLC models (specs/MODEL.md). |
ThreeService.tla |
Cross-origin interaction across Directory blind issuance, Coordinator redemption, quorum standing revocation, epoch cutover, and epoch_keys rollover. |
specs/ThreeService.tla |
Personas.tla, BoardEdits.tla, BoardComments.tla |
Epoch-scoped persona claiming/burn/rotation, P2PKH edit/delete key authorization, revision bounds, and deleted-parent comment stubs. | specs/ + Trace*.tla Rust trace validation |
AdminRoles.tla & ModerationRoles.tla |
Single-use admin grant claims, last-admin protection, self-mute prohibition, and moderator grant/revocation race safety. | AdminRoles.tla · ModerationRoles.tla |
| Cross-language interop & E2E | Locked HKDF, Poseidon2, LeanIMT, strict Ed25519, ML-DSA-65, and X-Wing vectors across Rust/JS/Python; full 3-origin E2E with real Groth16 proofs and SQLite/WAL inspection. | interop/ · tests/e2e.mjs |
TLA+ checks bounded finite models under explicit fairness and abstract-crypto assumptions; it is not an end-to-end formal proof of the full browser and server implementation.