Security
Post-quantum where it matters.
What is signed or encrypted with what, the attacks we designed against, and where each is tested. Nothing here is a claim without a file or a transaction.
Crypto inventory
| What | Object | Algorithm | Key | Code |
|---|---|---|---|---|
| Payment | qledger transfer | ML-DSA-44 | buyer's rollup key | client.ts |
| Price quote | signed quote in the 402 | ML-DSA-87 (+ secp256k1) | seller's chain key, checked on chain | quote.ts |
| Batch anchor | state root of each batch | ML-DSA-87 | operator's chain key | batcher.ts |
| Answer | the paid response | ML-KEM-1024 sealed | buyer's key from the chain's KEM registry | seal.ts |
| L1 transactions | every chain tx we send | secp256k1 + ML-DSA-87 hybrid | a QoreChain rule once a PQC key is registered | ops |
Threats and tests
| Attack | What stops it | Test or proof |
|---|---|---|
| Free shopping: serve before the payment is real | the facilitator replays rollup state and confirms the payment executed before the seller answers | exact.verify.test.ts |
| Replay a payment or a withdrawal | nonce rule in the rollup; a replayed withdrawal proof is refused on chain (E-12) | exact.verify.test.ts, withdrawals.ts |
| Change the amount or payee | the signed quote pins payer, nonce, payee and amount; one changed byte breaks the signature | quote.test.ts |
| Operator posts a wrong batch | the watchtower replays every batch; the drill showed detection in 1.8 s and the chain rejected the batch (E-14, E-15) | challenge.test.ts |
| Redirect the encryption key | keys come only from the chain's KEM registry, never from a header | seal.test.ts |
| Abuse the public demo | per-IP and daily caps stored in Neon; capped demo buyer | ratelimit.ts |
What we do not claim
- Our own watchtower did not win the drill challenge: an independent watcher was one block faster.
- A paid call takes about 11 to 15 seconds today; posts are serial and each waits for inclusion.
- The demo runs on QoreChain testnet with test QOR; the sellers and buyers are ours.
- The full threat model (26 threats) lists residual risks, including a buyer who claims another account's encryption link first.