QSEND

DocsPrivacy and security

Quantum-sealed notes

What is sealed, with what, and what is not quantum-safe.

On this page
  1. What is sealed
  2. How it works
  3. What the server and X see
  4. What is not quantum-safe

What is sealed

When you pay an X account, the note you add is sealed in your browser before anything is sent. QSEND uses a hybrid key encapsulation: ML-KEM-768 (the post-quantum standard FIPS 203) combined with X25519, in the X-Wing construction. The note is then encrypted with AES-256-GCM under a key derived from that exchange.

Hybrid means the note stays sealed as long as either of the two holds: a future quantum computer would have to break ML-KEM-768 as well, and a flaw in the newer standard would still leave X25519.

Quantum sealing is for X payments, and it is on by default. You can switch it off for one payment on the Send page (Quantum-seal the note).

How it works

StepWhereWhat
Receiver key pairSender's browserFrom the payment's 32-byte claim key: HKDF-SHA-256 gives a seed, the seed gives an ML-KEM-768 + X25519 key pair. Nothing new has to be shared.
EncapsulateSender's browserA fresh shared secret for that public key, and a 1,120-byte ciphertext (1,088 bytes of ML-KEM-768, 32 of X25519)
EncryptSender's browserHKDF-SHA-256 turns the shared secret into an AES-256 key; AES-256-GCM seals the note with a 12-byte random nonce, bound to the payment's key fingerprint as additional data
CarryQSEND's serverReceives only the sealed bytes and puts them inside its own seal. It cannot open them.
OpenReceiver's browserAfter the X sign-in, rebuilds the claim key from the link half and the server half, derives the same key pair and opens the note
Sealed note layout
version (1 byte) | KEM ciphertext (1,120 bytes) | nonce (12 bytes) | AES-256-GCM box (note + 16-byte tag)

Notes are up to 80 characters. Any change to the sealed bytes, a wrong key or a wrong context is detected: the note is then not shown, and the money can still be taken out.

What the server and X see

QSEND's server stores and forwards only the sealed bytes: it never sees the note, and neither does X. The server half of the key is sealed by QSEND's server with AES-256-GCM, a symmetric cipher that keeps a wide margin against known quantum attacks.

What is not quantum-safe

  • Solana transactions. Every transfer, deposit and take-out is an ordinary Solana transaction signed with Ed25519.
  • The private pool. Solana Privacy Rings is an ordinary Solana program, with its own cryptography.
  • The amount and coin of an X payment. They are on the public record anyway, so they are not sealed as a secret.
  • Plain links. On a plain link the link itself is the key: whoever holds it can open the money and read its note, so the note travels in the link and is not separately sealed.
  • A note with quantum sealing switched off. It goes to QSEND's server, which seals it with AES-256-GCM under its own key.

Our words

QSEND says quantum-sealed for the note, because that is what is sealed. It does not describe payments, links or the pool as quantum-safe.