Proxeny GitHub

Post-quantum readiness / cryptographic inventory

Post-quantum readiness.
Honest boundaries.

Proxeny prioritizes quantum resistance by real threat window: eliminate harvest-now-decrypt-later exposure across every stored member message and harden long-lived Coordinator root trust anchors with NIST FIPS 203 & FIPS 204 hybrid primitives today, while documenting every classical authentication, blind-issuance, and zero-knowledge primitive that still awaits later phases.

FIPS 203 (ML-KEM-768) · FIPS 204 (ML-DSA-65) · X-Wing hybrid KEM · Rust fips204 + @noble/post-quantum · Backwards-compatible wire upgrades

Threat prioritization / what ships now

Close stored-ciphertext risk first.
Authenticate roots for the long term.

Guidance such as NSA CNSA 2.0 / advisory PP-26-4956 emphasizes moving confidentiality and long-lived trust roots off bare classical elliptic curves now rather than waiting for full ecosystem standardization of blind tokens and pairing-free ZK circuits.

01 / Harvest-now, decrypt-later

Hybrid X-Wing E2EE across stored content

Private responses and job pitches, direct messages, mutual intro chat, and double-opt-in contact/resume reveals negotiate X-Wing (ml_kem768_x25519: ML-KEM-768 + X25519) key agreement paired with 256-bit AES-256-GCM and domain-separated HKDF-SHA-256.

02 / Root manifests & checkpoints

Dual-signed Coordinator identity

Each Coordinator persists an ML-DSA-65 seed alongside its Ed25519 identity, dual-signs deployment manifests, epoch rosters (including posting_policy), and append-only LeanIMT checkpoints, and lets deployments pin pqManifestFingerprint in community.json.

03 / Steward escrow & revocation

Threshold custody with hybrid enforcement

Escrow format v2 splits 256-bit DEKs via GF(256) Shamir sharing wrapped under each steward’s X-Wing key. Quorum standing revocations require both valid Ed25519 and ML-DSA-65 signatures from threshold stewards.

04 / Live auth, issuance & ZK

Explicitly staged classical surfaces

Online operational Ed25519 request signatures, RFC 9474 3072-bit RSA-PSS blind tokens, and Semaphore v4 BN254 Groth16 proofs remain classical today. Active forgery requires a live CRQC; recorded blinding and proof assumptions are listed in Limits below.

Cryptographic inventory / live implementation

Every primitive in the stack,
verified across Rust & JS.

Status reflects deployed code in crates/proxeny-core, crates/proxeny-coordinator, sdk/, and stewards/—not aspirational specification prose.

Complete inventory of cryptographic primitives across Proxeny surfaces
Surface Primitives Status Details & source
Symmetric content & vaults AES-256-GCM, HKDF-SHA-256, PBKDF2-SHA-256 256-bit sym Board posts, comments, polls, personas, epoch content keys, read tokens, and device passkey PRF / password vaults use 256-bit symmetric keys and 96-bit IVs (sdk/community.mjs).
Private responses & pitches X-Wing (ML-KEM-768 + X25519) + AES-256-GCM Hybrid PQ Board posts carry 1216 B request_pq_kem_pub; responders encapsulate 1120 B ciphertext padded to 4096 B (responsePq), preserving legacy 32 B/1024 B fallback (sdk/community.mjs, protocol/community.rs).
Direct messages & intro chat X-Wing + AES-256-GCM Hybrid PQ Deterministic 64 B hybrid coins let senders recover sent history from recovery phrases; padded to 4096 B (mailboxPq) with PQ key binding in proxeny-dm-msg-v2 (sdk/messages.mjs).
Contact & resume reveals X-Wing + AES-256-GCM Hybrid PQ Double-opt-in reveal packages derive keys from X-Wing shared secret bound to intro-context-v2 (covering both classical and PQ intro keys) (protocol.rs).
Steward escrow & revocation GF(256) Shamir + X-Wing + Ed25519 + ML-DSA-65 Hybrid PQ ESCROW_VERSION = 2 wraps shares under per-steward 1216 B X-Wing keys; quorum revocation checks both Ed25519 and 3309 B ML-DSA-65 signatures (sdk/escrow.mjs).
Coordinator manifests & checkpoints Ed25519 + ML-DSA-65 (FIPS 204) Hybrid PQ Coordinator persists an ML-DSA-65 root key (1952 B K_pq), cross-signs F_pq, emits deterministic roster_mldsa_sig, and backfills checkpoint_mldsa_sig verified by trustManifest & verifySnapshot (crypto.rs, sdk/history.mjs).
Digests & membership tree SHA-256, SHA-384, Poseidon2 (BN254) Hash / field Domain tags, manifest fingerprints, nullifier scopes, and LeanIMT Merkle nodes (note: Grover halves preimage security from 256-bit to ~128-bit classical equivalent).
Transport security TLS 1.3 Transport Live origins negotiate TLS 1.3; browser/edge termination handles PQ hybrid TLS key shares (e.g. X25519MLKEM768) outside application code.
Operational & member auth Ed25519 (strict cofactorless RFC 8032) Classical Directory auth, steward/operator admin headers, moderation actions, handle signatures, and item edit/delete keys (sdk/persona.mjs). Planned for Phase 2.
Blind renewal issuance RSABSSA-SHA384-PSS-Deterministic (3072-bit) Classical RFC 9474 blind signatures decouple Directory issuance ledger from Coordinator C_e redemption. Planned for Phase 3.
Anonymous membership proofs Semaphore v4 (Groth16 over BN254) Classical 16-level LeanIMT SNARK verified natively in Rust via ark-groth16. Planned for Phase 4.

Cross-language interop verified. Rust (fips204 v0.5.0) and JavaScript (@noble/post-quantum) are locked to identical FIPS 204 byte encodings and verified against a shared SHA-256 known-answer vector in unit tests and full E2E checks.

Wire formats & verification modes

Dual-mode verification without
breaking existing deployments.

Every upgrade adds domain-separated PQ payloads rather than mutating legacy hashes, so previously computed manifestFingerprint values and IndexedDB checkpoint pins continue verifying seamlessly during rollout.

Pinned PQ manifests & strict fallback

Deployments can pin pqManifestFingerprint alongside manifestFingerprint in community.json. Unpinned clients still verify PQ signatures opportunistically and reject any partial or forged PQ metadata.

community.json & manifest PQ payloadssdk/history.mjs
{
  "manifestFingerprint": "<Ed25519 F (SHA-256)>",
  "pqManifestFingerprint": "<PQ F_pq (SHA-256)>"
}

# PQ root commitment & Ed25519 cross-binding:
["introducer-manifest-pq-v1", D,
  "introducer-identity-tree-v1", K, K_pq]

["proxeny-pq-key-binding-v1", D, F, F_pq]

# Verification modes:
PinnedRequired       // F_pq pinned in community.json
OpportunisticVerify  // K_pq/F_pq present without pin
LegacyClassical      // Pre-upgrade coordinator only

Padded hybrid envelopes & PQ checkpoints

The Coordinator enforces fixed padded ciphertext lengths for both v1 classical and v2 hybrid X-Wing writes, and persists an explicit mldsa_sig column alongside historical 2-tuple checkpoint envelopes.

Hybrid wire sizes & checkpoint bindingprotocol/community.rs
ephem_pub       32 B (X25519) or 1120 B (X-Wing)
board / boardPq 4096 B / 8192 B padded (+16 B tag)
response / Pq   1024 B / 4096 B padded (+16 B tag)
mailbox / Pq    2048 B / 4096 B padded (+16 B tag)
persona / Pq    256 B  / 2048 B padded (+16 B tag)

# ML-DSA-65 checkpoint payload signed per state transition:
["proxeny-checkpoint-mldsa65-v1",
  sha256(K_pq), checkpoint_tuple]

Source definitions in sdk/config.mjs, sdk/community-format.mjs, crates/proxeny-core/src/tree.rs, and storage/enrollment.rs.

Phased migration roadmap

Four stages from confidentiality
to end-to-end PQ protocols.

Authentication upgrades follow a strict risk order so mobile latency, HTTP header limits, and circuit proving times are solved cleanly at each step.

P1 Confidentiality & Root Trust Anchors

Shipped Hybrid X-Wing across all E2EE flows and steward escrow, plus Ed25519 + ML-DSA-65 Coordinator manifests, rosters, and checkpoints with optional pqManifestFingerprint pinning.

sdk/community.mjs · sdk/history.mjs

P2 Steward, Directory & Persona Auth

Next Extend hybrid ML-DSA-65 + Ed25519 signatures to steward admin requests (carried in JSON envelopes to clear HTTP header size limits), directory onboarding/issuance auth, persona claims, and edit/delete keys—and retire legacy X25519 acceptance on future epochs.

stewards/server.mjs · sdk/persona.mjs

P3 Post-Quantum Blind Issuance

Research Replace 3072-bit RSA-PSS blind signatures (RFC 9474) once standardized lattice-based blind signature schemes provide compact proofs without brittle multi-round trust assumptions.

crates/proxeny-core/src/crypto.rs

P4 Post-Quantum Membership Proofs

Ecosystem Replace pairing-based BN254 Groth16 (Semaphore v4) when post-quantum zero-knowledge membership proofs (e.g. lattice or hash-based SNARKs/STARKs) fit mobile WASM prover budgets.

crates/proxeny-core/src/groth16.rs

Trade-offs & residual risk

Where classical assumptions
and overhead still apply.

Auditors should evaluate both the measured runtime cost of hybrid PQ today and what recorded classical transcripts still reveal to a future quantum computer.

Protocol non-guarantees
  • Envelope size & polling weight

    Hybrid keys and ciphertexts expand padded envelopes by 2×–8× (up to 8 KB per board post plus 1120 B ephem_pub) and raise the Coordinator HTTP body cap to 32 KB.

  • Trial-decryption CPU cost

    Anonymous private responses lack recipient tags, so post authors run implicit-rejection X-Wing decapsulation in pure JS across non-matching rows. Session caches avoid re-work on polling, though cold loads scale linearly with unread responses.

  • Transition-window version fingerprinting

    While v1 and v2 sizes coexist on the wire, an observer inspecting ciphertext length or ephem_pub size (32 B vs 1120 B) can distinguish legacy clients from upgraded clients until future epochs sunset v1.

  • Pre-upgrade keys & downgrade protection

    Existing personas and board posts created before hybrid PQ rollouts lack PQ public keys and fall back to X25519 until rotated or reposted. Newly issued PQ keys are authenticated via AEAD and v2 signatures to block stripping.

  • Classical blindness of recorded issuance

    Until Phases 3–4 replace RSA-PSS and BN254, a future CRQC with saved Directory blind transcripts and Coordinator redemption logs (or saved Groth16 witnesses under collusion) could break algebraic unlinkability retroactively even though encrypted message contents remain protected by X-Wing.

  • Deterministic sent-message recovery

    Sent DMs and intro chat derive deterministic 64 B hybrid coins from the member’s recovery phrase so users can recover their own sent history on a new device; compromising that phrase exposes those derived keys as well.