# CAPPZ now encrypts for the quantum era: what you store today stays private tomorrow

> CAPPZ now pairs its encryption with ML-KEM-768 and its key trust with ML-DSA-65, the NIST post-quantum standards, so data recorded today stays closed even if a quantum computer later breaks today's elliptic curves. A new 1 XRP check shows which XRP Ledger keys a quantum computer could attack, fixed.

By CAPPZ.AI · November 23, 2026 · Source: https://cappz.ai/news/post-quantum-protection

A quantum computer large enough to run Shor's algorithm could recover a private key from its public key. That covers RSA, and it covers every elliptic curve in everyday use: secp256k1, Ed25519, P-256 and X25519. No such machine exists yet. The estimate of how big it would need to be keeps shrinking, though. At CRYPTO 2025, Chevignard, Fouque and Schrottenloher showed RSA-2048 could be factored with about 1,730 logical qubits, down from about 4,000.

What matters is when each kind of damage happens:

- **Encryption breaks retroactively.** Anyone can record encrypted data today and decrypt it once the machine exists. This is "harvest now, decrypt later", and the only defence is to change the encryption before then.
- **Signatures break later.** A signature can only be forged once the machine exists. That leaves time, but the replacement has to be in place before it's needed.

This release deals with both, starting with encryption.

## Encryption: two locks instead of one

Wherever CAPPZ encrypts something for a recipient, it now combines the classical key exchange with **ML-KEM-768**, the post-quantum key-encapsulation standard NIST published as FIPS 203. Both secrets feed the key that does the encrypting, so the data stays closed unless **both** are broken. That covers:

- sealed items sent to a party, such as access keys for content you buy, identity disclosures and marketplace secrets;
- records you share with other wallets, such as a prescription shared with a pharmacy;
- the encrypted channel two wallet copies use when they sync peer to peer.

Nothing you already have stops working:
- Every encrypted item records which scheme sealed it, so older items open as before.
- An existing key gains its post-quantum half without changing, so anything already sealed to it still opens.
- Marketplace participants who use the `cappz-market` tool get the upgrade automatically on its next run.

## A detail that matters: your address is your public key

A CAPPZ wallet address **is** its public key. That's convenient, but it means anyone can see the public key, and a future quantum computer could work out the private key from it. Anything derived only from the private key could then be reproduced too.

So the post-quantum secrets now come from your **recovery phrase** instead, by a one-way path that the private key doesn't reveal. Records your wallet seals for itself now need both the private key and that secret. Your device keeps the secret, encrypted, next to your wallet key, so unlocking with your passcode or passkey restores both.

If a device was set up before this release, sign in once with your recovery phrase on it to bring it up to date. Until then it keeps working as before, and if it meets a record that needs the new secret, it tells you so instead of failing quietly.

## Signatures: an anchor declared while trust still holds

CAPPZ trusts keys through declarations: a wallet signs a statement that "this key speaks for me, for this purpose, until this date". Those statements are signed with the wallet's own key, which is exactly what a quantum computer would forge first.

A wallet can now declare a **post-quantum anchor**: an **ML-DSA-65** key, the NIST signature standard published as FIPS 204. Once a wallet has an anchor, its declarations count only when the anchor co-signs them. Someone who forges the wallet's classical signature still can't:
- add a key to it;
- revoke its anchor;
- replace its anchor.

If two anchors appear that don't vouch for each other, verifiers report a conflict and trust neither. That conflict is the sign that the classical key was broken. The time to declare an anchor is now, while the classical signature can still be trusted.

Agents on the CAPPZ Marketplace can use this now. With the latest `cappz-market` tool, each request an agent sends carries a second signature made with ML-DSA-65, next to the existing Ed25519 one. If an agent has a post-quantum key on its profile, a request without the second signature is flagged, and a spending mandate tied to the agent's key refuses it.

Certificates (X.509) stay what they already were at CAPPZ: a generated copy of a wallet's declaration, never the root of trust. Public HTTPS keeps its public certificate, and current browsers already use post-quantum key exchange where the server offers it.

## Your XRP Ledger keys: shorter exposure, safer vaults

The XRP Ledger's own signatures are classical, and only a change to the ledger itself can alter that. What an account owner controls is how long a key is exposed.

An XRP Ledger address is a hash of a public key. The public key appears on the ledger only when the key **signs** something; receiving money reveals nothing. So the keys a quantum computer could attack are the ones that have signed and can still sign. That makes three moves worth making:

1. **Rotate.** Sign with a regular key instead of the master key, and replace that regular key from time to time. The address, balance and trust lines stay the same.
2. **Disable an exposed master key**, once a regular key is working.
3. **Sweep reserves to a vault whose keys have never signed.** Keep a working buffer where it's used, and move the rest to an address that has only ever received.

Nesting keys inside keys doesn't add protection, because an attacker simply goes for whichever key is exposed. What helps is keys that were never published, short exposure windows, several independent signatures, and never publishing a parent public key.

## New: a 1 XRP quantum key-exposure check

The CAPPZ edge node at silwa.duckdns.org now sells a **quantum key-exposure check** on the CAPPZ Marketplace, on mainnet and testnet. For **1 XRP**, paid only after you've seen the report's fingerprint, it reads the full history of up to 10 XRP Ledger accounts and returns a signed report:

- which keys that can sign have published their public key, and since when;
- whether the master key is still live;
- which accounts are safe receive-only vaults;
- the unsigned transactions to fix it: rotate to a fresh regular key, disable an exposed master key, and sweep funds above a buffer to a vault that has never signed.

The node never holds your keys, and anyone can check the report's signature with the node's free `verify.mjs`.

One tip we learned on the first test run: **pay from an account you are not checking.** Paying signs a transaction, and signing publishes that account's key. The report is written before you pay, so it would still show the paying account as unexposed, but your payment exposes it a moment later.

```bash
npx @cappz/market hire https://silwa.duckdns.org/agents/key-exposure --input '{"accounts":["r…"],"vault":"r…"}' --max 1
```

Validate it free first on testnet at `https://silwa.duckdns.org/testnet/agents/key-exposure`.

## What we are not claiming

Post-quantum protection is a migration, not a switch, so here is where it stands:

- **Protected now:** new encrypted items and shared records, peer sync channels, records your wallet seals for itself, and key declarations from wallets that declare an anchor.
- **Not yet:** the XRP Ledger's own signatures. Records already written to the ledger in the earlier format also can't be rewritten; they stay readable as before, but they don't gain the new protection.
- **Unchanged and fine:** AES-256 and SHA-256 keep 128-bit strength against a quantum computer.

## For developers

Everything is in the open-source [CAPPZ SDK](https://github.com/CAPPZ-ai/cappz-sdk) (Apache-2.0), versions 16.2.0 and 16.3.0, built on the audited `@noble/post-quantum` library. The full technical write-up, including formats, migration and trust states, is in [docs/POST_QUANTUM.md](https://github.com/CAPPZ-ai/cappz-sdk/blob/main/docs/POST_QUANTUM.md).

- Hybrid encryption: `sealTo`, `generateBoxKeyPair`, `upgradeBoxKeyPair`, `walletEncryptionKey(…, { pqSeed })`
- Post-quantum key trust: `declarePqAnchor`, `pqCosign`, `pqAnchorState`
- XRP Ledger exposure: `keyExposure`, `regularKeyFor`, `rotationTransaction`, `quickSweepTransaction`

---

CAPPZ.AI News: https://cappz.ai/news · RSS: https://cappz.ai/news/rss.xml
