Quantum Playground
Experiment safely with cryptography
No wallet keys, no funds, no transactions. Compare Ed25519 with standardised post-quantum schemes and see how sizes and timings differ in your own browser.
Education and prototyping only
This playground is for education and prototyping. It does not make your wallet or blockchain quantum-resistant. Demo keys are generated in your browser for this session only; they are never your wallet keys and are never stored or sent to the server.
Section A
Signature demonstration
Generate a temporary demo key, sign a message, verify it, tamper with the message and verify again.
Signature demonstration
Digital signatures (module-lattice based, formerly CRYSTALS-Dilithium).
Any text up to 500 characters. Do not paste secrets; this is a demonstration message.
- Public key size
- —
- Signature size
- —
- Key generation
- —
- Signing duration
- —
- Verification duration
- —
- Tampered verification
- —
Published: 1952 B
Published: 3309 B
Status
- PendingOriginal message
- PendingTampered message
Section B
Key encapsulation demonstration
Walk through key generation, encapsulation, decapsulation and shared secret agreement with ephemeral data.
Key encapsulation demonstration
Key encapsulation (module-lattice based, formerly CRYSTALS-Kyber).
A key-encapsulation mechanism lets two parties agree on a shared secret. The recipient publishes a public key; the sender uses it to produce a ciphertext and a secret; the recipient recovers the same secret from the ciphertext. Only ephemeral demo data is used here.
- Public key size
- —
- Ciphertext size
- —
- Shared secret size
- —
- Key generation
- —
- Encapsulation
- —
- Decapsulation
- —
Published: 1184 B
Published: 1088 B
Shared secret agreement
Pendingsender secret vs recipient secret
Section C
Comparison view
Classical and post-quantum approaches side by side, using published metadata rather than invented benchmarks.
Comparison view
Educational metadata from the published standards. Sizes are parameter sizes, not measurements. The “Measure” buttons run a small number of iterations on the server and report wall-clock means for that environment only. Where a benchmark cannot run, the table says so.
| Algorithm | General purpose | Type | Public key | Signature / ciphertext | Intended use | Implementation status | Security review status | Benchmark |
|---|---|---|---|---|---|---|---|---|
Ed25519 classical RFC 8032; FIPS 186-5 | Digital signatures (elliptic curve, EdDSA). | Signature | ≈ 32 B | ≈ 64 B | Transaction and message signing. Used today by Solana for account authorization. | Widely deployed in production across many ecosystems. | Mature, extensively analysed. Vulnerable to Shor's algorithm on a cryptographically relevant quantum computer. | |
ML-DSA-44 post-quantum FIPS 204 (2024) | Digital signatures (module-lattice based, formerly CRYSTALS-Dilithium). | Signature | ≈ 1.3 KB | ≈ 2.4 KB Exceeds Solana’s 1232-byte transaction limit | General-purpose signatures at NIST security category 2. | Standardised. Native implementations exist; the prototype here uses a pure-JavaScript library. | Standardised by NIST after a multi-year public evaluation. Implementations still require independent review. | |
ML-DSA-65 post-quantum FIPS 204 (2024) | Digital signatures (module-lattice based, formerly CRYSTALS-Dilithium). | Signature | ≈ 1.9 KB | ≈ 3.2 KB Exceeds Solana’s 1232-byte transaction limit | General-purpose signatures at NIST security category 3, the level NIST recommends as a default. | Standardised. Native implementations exist; the prototype here uses a pure-JavaScript library. | Standardised by NIST after a multi-year public evaluation. Implementations still require independent review. | |
SLH-DSA-SHA2-128f post-quantum FIPS 205 (2024) | Digital signatures (stateless hash-based, formerly SPHINCS+). | Signature | ≈ 32 B | ≈ 16.7 KB Exceeds Solana’s 1232-byte transaction limit | Conservative signatures where very large signatures are acceptable, such as firmware or root-of-trust signing. | Standardised. The prototype here uses a pure-JavaScript library; signing is noticeably slower than lattice schemes. | Security rests on well-studied hash functions. Implementations still require independent review. | |
X25519 classical RFC 7748 | Key agreement (elliptic-curve Diffie–Hellman). | Key establishment | ≈ 32 B | ≈ 32 B | Establishing shared secrets, for example in TLS and messaging protocols. | Widely deployed in production. | Mature, extensively analysed. Vulnerable to Shor's algorithm on a cryptographically relevant quantum computer. | |
ML-KEM-768 post-quantum FIPS 203 (2024) | Key encapsulation (module-lattice based, formerly CRYSTALS-Kyber). | Key establishment | ≈ 1.2 KB | ≈ 1.1 KB | Establishing shared secrets at NIST security category 3. Already deployed in hybrid TLS key exchange by major browsers and CDNs. | Standardised and in production use in hybrid mode. The prototype here uses a pure-JavaScript library. | Standardised by NIST after a multi-year public evaluation. Implementations still require independent review. |
Section D
Solana context
What this playground does and does not change about on-chain authorization.
Solana context
How Solana authorises a transaction
A transaction carries one or more 64-byte Ed25519 signatures over its serialised message. Each signer’s 32-byte public key appears in the account list, and the first signer pays the fee. Validators verify every signature before executing any instruction.
Current signature assumptions
- Account addresses are Ed25519 public keys and are visible on-chain by design.
- Transactions are limited to 1232 bytes including all signatures.
- Native programs verify Ed25519 and secp256k1 signatures; there is no native post-quantum verifier.
Why this demo does not change blockchain-level authorization
Why migration needs protocol and wallet support
Read more: Solana Transaction Authorization Today.