fatext v4.0
fatext / proofs / 07-pqxdh-forward-secrecy-and-blind-mailbox-proof

Proof 07 — Asynchronous Post-Quantum Forward Secrecy (PQXDH) & Key-Blinded Mailboxes

Offline relay queues (Drop-Box) cannot execute interactive ephemeral Diffie-Hellman handshakes because the recipient may be asleep or disconnected when the sender transmits. fatext v4.0 closes both the post-compromise retrospective decryption gap and the relay recipient-linkability gap via signed one-time hybrid prekeys (Signal PQXDH, formally verified at USENIX Security 2024), power-of-four padding (Nostr NIP-59), 2-hop KEM onion routing (Session Onion Requests), and prime-order key-blinded daily mailboxes.

1. Theorem 7.1 (Asynchronous Forward Secrecy under Post-Burn State Compromise)

Construction: For each home seed Sm (m ∈ 1..M), recipient B samples independent 96-byte CSPRNG seeds seedm,j ← {0,1}768 (disjoint across seeds so opk_idm,j ≠ opk_idm',j' for m ≠ m'), derives hybrid X25519 + ML-KEM-768 keypairs (dkm,j, EKm,j), signs "fatext-v4-opk\n" || B || "\n" || kv || "\n" || opk_id || "\n" || base64(EK_{m,j}) under skid(kv), and uploads only (opk_id, EKm,j, σm,j) to Sm. Upon pulling and decrypting an envelope carrying opk_id, B executes burn_local_opks, overwriting prekeys.json without seedm,j.

Statement: Let E* be an offline Drop-Box envelope encapsulated against claimed prekey EKm,j* and decrypted at time tburn. Suppose an adversary 𝒜 records all network ciphertexts from t = 0 and, at any time tcomp > tburn, compromises B's full persistent state (master.seed + remaining unburned prekeys.json + all seed relay storage). Modeling SHA3-256 as a random oracle, 𝒜's IND-CCA2 advantage in distinguishing the plaintext of E* is bounded by:

Advfs-ind-cca2DropBox-PQXDH(𝒜) ≤ min(Advind-cca2ML-KEM-768(ℬ1) + qH + qD2256, Advgap-cdhX25519(ℬ2) + qD · δML-KEM-768 + qH2256) + Advind-cca2AES-256-GCM(ℬ3) + Adveuf-cmaSchnorr(ℬ4).

Proof:

  1. Authenticity against Malicious Relay Substitution: Before encapsulating, the sender verifies B's ristretto255 Schnorr signature σm,j* binding (B, kv, opk_id, EKm,j*) to B's verified microlog PKid. Substituting a rogue prekey reduces directly to Schnorr EUF-CMA (Adveuf-cmaSchnorr).
  2. Cryptographic Independence after Burn: Because seedm,j* was sampled from fresh OS CSPRNG entropy—not derived from master.seed—and erased from prekeys.json at tburn < tcomp, revealing master.seed and {seedm,j}j ≠ j* at tcomp gives 𝒜 zero information about dkm,j*. By Theorem 4.1 (Proof 04), recovering the hybrid shared secret ss* breaks both NIST FIPS 203 ML-KEM-768 and RFC 7748 X25519 Gap-CDH; once ss* is indistinguishable from random, aead_key = SHA3-256("fatext-v4-kem-aead\n" || ctx || "\n" || ss^*) reduces payload confidentiality to AES-256-GCM.
  3. Zero Cross-Seed Burn Race: Because prekey batches are strictly partitioned across seeds (𝒪(S1) ∩ 𝒪(S2) = ∅), burning opk_id1,j* after claiming from S1 never invalidates any unpopped prekey hosted on S2. ∎

2. Theorem 7.2 (Daily Key-Blinded Mailbox Unlinkability & ACK Soundness)

Construction: For UTC day index d = ⌊ ts / 86400 ⌋ and recipient primary key PKid = [skid]B over RFC 9496 ristretto255:

td = Hs("fatext-v4-mbx-tweak\n" ‖ PKid ‖ uint64_be(d)) ∈ ℤℓ,   PKmbx, d = PKid + [td]B,   skmbx, d = skid + td (mod ℓ).

The mailbox path /v4/dropbox/mbx_<20_crockford> is derived from SHA3-256("fatext-v4-mbx-id\n" ‖ PKmbx, d), and GET/ACK requests authenticate solely via Schnorr signatures under PKmbx, d (X-Mbx-Pk).

Statement:

  1. Out-of-Band & Cross-Day Unlinkability: Against an honest-but-curious relay (or passive observer) that does not hold B's exact PKid in a candidate directory, any sequence of daily mailbox keys {PKmbx, d1, …, PKmbx, dk} is indistinguishable in the Random Oracle Model from k independent uniform elements of the prime-order ristretto255 group. Directory Precomputation Caveat: Because td depends solely on public (PKid, d), a relay with access to a public directory of U known PK_id keys (such as its own /v4/ring-pool and DHT ReachDescriptor cache) can build a daily reverse lookup table in O(U) group operations (seconds for U sim 105); strong recipient unlinkability against the home relay therefore holds only when PKid is exchanged out-of-band outside public directories, while sender IP correlation is independently decoupled via 2-hop /v4/onion + Scoped bLSAG blind quota + [1024, 4096, 16384, 65536] bucket padding.
  2. Unforgeable Mailbox Pull/Purge: Forging a valid GET or /ack signature for mbx_d without knowing skid reduces tightly to Discrete Logarithm on PKid:
Advforge-mbx(𝒜) ≤ Adveuf-cmaSchnorr-ristretto255(ℬ) + qH2100.

Proof of Additive Key Homomorphism Reduction: Given Schnorr challenge key PK* = [x*]B, simulator ℬ programs or evaluates td = Hs("fatext-v4-mbx-tweak\n" ‖ PK* ‖ uint64_be(d)) and sets PKmbx, d = PK* + [td]B. Any adversary producing two rewound Schnorr transcripts (R, c1, s1) and (R, c2, s2) under PKmbx, d yields xmbx = (s1 - s2)(c1 - c2)-1 (mod ℓ), from which ℬ immediately extracts x* = xmbx - td (mod ℓ), solving Discrete Logarithm on ristretto255 (the 2-100 term bounds 100-bit Crockford mbx_ collision).

3. Theorem 7.3 (v4.1 Pairwise contact_secret Mailbox Unlinkability & Authenticated OPK Quota)

Construction: During pair join / pair accept, peers exchange a 32-byte E2EE contact_secret (cs ← {0,1}256). Subsequent --blind-mailbox deliveries derive:

td = Hs("fatext-v4-mbx-contact-tweak\n" ‖ cs ‖ PKid ‖ uint64_be(d)),   PKmbx, d = PKid + [td]B.

Additionally, POST /v4/prekeys/{target_id}/claim rejects unauthenticated requests (HTTP 401) and requires either signed HTTP headers (fatext-v4-http\n + X-Microlog-B64) or a Scoped bLSAG blind quota proof bounded by --opk-claim-limit.

Statement & Proof Sketch: Even if a curious Homeserver holds a complete index of U public PK_id identities (from directory profiles or DHT caches), without knowing cs its probability of matching a contact_secret mailbox address PKmbx, d to PKid with qH random-oracle queries is bounded by qH / 2256 (closing the Theorem 7.2 O(U) directory precomputation caveat for paired contacts). Simultaneously, authenticating and rate-limiting /claim ensures an unauthenticated attacker cannot exhaust a victim's finite one-time opk supply to force static-ek_kem fallback.

Raw Markdown: /proofs/07-pqxdh-forward-secrecy-and-blind-mailbox-proof.md All specs & proofs: /llms-full.txt