Qday
$QDAYpump
CoinsLaunchIdentityWalletVaultPoolsRevenueVerifyDocsBunker
docs / protocol v1

How Qday works

The full specification of the hash-based identity, attestation and proof protocol behind every launch. One file of code implements all of it, /js/pq.js, and the same code runs in your browser and on our server.

Overview

Each user holds a post-quantum identity: a Merkle tree over 256 Winternitz one-time keys (WOTS), grown deterministically from one wallet signature. The tree's root is the public key; a hash of the root is the user's qd1… address.

Every launch spends one of those keys. That key signs a digest of the coin's identity (its address, creator, name, ticker, picture and the key's index) and also owns the coin's address. The signature is pinned into the coin's IPFS metadata, so anyone can check where a coin came from with nothing but SHA-256, before or after any break of elliptic curves.

Threat model

We plan for an attacker who can one day forge ed25519 signatures, through a large enough quantum computer running Shor's algorithm or through a classical advance against the discrete log. On Solana that break is total: an account's address is its ed25519 public key, so there is no hash in front of it the way a never-spent Bitcoin address has one.

WhatBefore the breakAfter the break
SOL and tokens in normal accountssafeexposed: move them into a quantum vault
Who launched a coinwallet signaturethe WOTS attestation + the anchor
Logging in as an identitywallet signatureWOTS challenge-response
Identity with a passphrasesafesafe, as strong as the passphrase
Identity without onesafere-derivable by whoever forges the wallet

The hash

Every hash in the protocol is SHA-256 with n = 32 bytes. Forging reduces to finding a second preimage; Grover's algorithm cuts that to about 2128 quantum work, which stays out of reach.

Each call is separated by a public seed and a 32-byte address (ADRS) that pins it to one exact spot in the structure. That stops an attacker from spreading one preimage search across many chains or many users.

F(pk.seed, ADRS, x) = SHA-256(pk.seed ‖ ADRS ‖ x)
type
bytes 0-3
leaf · height
4-7
chain · node
8-11
step
12-15
zeros
16-31
fig. 1 · ADRS: four big-endian u32 fields. type 0 = chain step, 1 = leaf, 2 = tree node, 3 = secret key derivation.

One-time signatures

With Winternitz parameter w = 16 every 4-bit digit of a message picks a spot on a hash chain 15 steps long.

SymbolValueMeaning
n32hash output, bytes
w16chain length + 1
len₁64message digits
len₂3checksum digits
len67chains per key

Message encoding

The 32-byte digest splits into 64 nibbles d₀…d₆₃, high nibble first. A checksum of the distance left on every chain is appended as three more base-16 digits:

C = Σ (15 − dᵢ) ≤ 960 < 16³ → d₆₄, d₆₅, d₆₆

The checksum is what makes forging hard: moving any message digit up only needs more hashing from a public value, but it lowers C, and moving a checksum digit down means inverting SHA-256.

Sign and verify

skⱼ = SHA-256(sk.seed ‖ ADRS(3, leaf, j))
pkⱼ = F¹⁵(skⱼ)
σⱼ = F^dⱼ(skⱼ)
verify: F^(15 − dⱼ)(σⱼ) =? pkⱼ

Signing costs Σdⱼ hashes and verifying Σ(15 − dⱼ); together exactly 67 × 15 = 1,005. Because σ gives away points in the middle of each chain, a key that signs two different messages leaks enough to forge a third. So a key is never used twice: the server's leaf ledger refuses it, and your browser remembers every key it ever signed with.

Merkle identities

The 67 chain ends of key i compress into one leaf, and the 256 leaves form a binary tree of height 8. The root, with pk.seed, is the identity's 64-byte public key.

ℓᵢ = SHA-256(pk.seed ‖ ADRS(1, i) ‖ pkᵢ,₀ ‖ … ‖ pkᵢ,₆₆)
node(h, j) = SHA-256(pk.seed ‖ ADRS(2, h, j) ‖ left ‖ right)

A full signature is (leaf, σ, a₀…a₇): 4 + 67·32 + 8·32 = 2,404 bytes. Verifying rebuilds the leaf from σ and climbs 8 levels with the auth path; it holds only if the result is the registered root.

Key derivation

No new seed phrase. Your wallet signs one fixed message, and because ed25519 signatures are deterministic (RFC 8032) the same wallet always gives the same 64 bytes. An optional passphrase is stretched with scrypt and mixed in: entropy the curve never sees.

IKM = σ_wallet ‖ scrypt(passphrase, SHA-256("qday/passphrase-salt/v1/" ‖ wallet), N=2¹⁵, r=8, p=1)
sk.seed = HKDF-SHA256(IKM, "qday/identity/v1", "sk:" ‖ wallet)
pk.seed = HKDF-SHA256(IKM, "qday/identity/v1", "pub:" ‖ wallet)
address = "qd1" ‖ base58(SHA-256("qday/address/v1" ‖ pk.seed ‖ root)[0..20])
mintᵢ = ed25519(HKDF(sk.seed, "qday/mint/v1", u32(i)))

The exact message your wallet signs:


        

Building the tree is 256 × (67 × 15 + 68) ≈ 274,000 SHA-256 calls and takes well under a second in a current browser. The seeds stay in this tab's session storage until you lock it or close the tab; nothing secret is ever sent.

Registration

Registration binds wallet and root both ways. One statement is signed twice: by the wallet (ed25519) and by key #0 (WOTS). The server checks both before it stores the public key, and key #0 is spent as the genesis signature.



        

On-chain anchor

A record in our database is only as good as our database. The anchor writes your root to Solana in an SPL Memo signed by your wallet: a public timestamp from the time ed25519 signatures could still be trusted. After a break, any claim about who owns a root can be checked against the earliest anchor.

qday:v1:anchor:<qd1 address>:<root>

Launch attestation

Key i signs a digest over the coin's public fields, sorted by name. The same key owns the coin's address, so the address itself commits to the identity.

d = SHA-256("qday/launch/v1\n" ‖ "creator=…\nimage=…\nleaf=…\nmint=…\nname=…\nsymbol=…")
  1. Your browser picks a fresh key i, derives mintᵢ and signs d with key i.
  2. The picture is pinned to IPFS; the server checks the signature against your root and spends key i at once.
  3. The metadata with the full attestation is pinned to IPFS.
  4. The server builds one v0 transaction: pump.fun create_v2 (+ the dev buy), compiled against pump.fun's lookup table, and simulates it.
  5. Your wallet signs as payer, your browser adds mintᵢ's signature, and the server relays only a transaction it built in the last two minutes.

The server never holds the coin's key or any WOTS secret.

Metadata

The pinned JSON carries the whole attestation, so checking it needs neither our API nor our database:

{
  "name": "…", "symbol": "…", "image": "https://ipfs.io/ipfs/…",
  "qday": {
    "version": 1, "scheme": "wots", "protocol": "WOTS(w=16,SHA-256)+Merkle(h=8)",
    "pqAddress": "qd1…", "root": "…", "pubSeed": "…", "height": 8,
    "messageHash": "…", "signature": "<2,404 bytes, hex>"
  }
}

Creator fees

pump.fun fixes a coin's fee recipient when it is created, through the creator field of create_v2. Every coin launched here will name the platform treasury as its pump.fun creator once the treasury is set; until then a coin's creator fees go to the wallet that launched it. The launching wallet signs and pays either way, and is recorded as the creator inside the attestation. Revenue splits . The revenue page reads every buyback and burn from the chain.

Signature schemes

Launch creators pick how a launch is signed. WOTS + Merkle is the root of trust and spends one key per launch. The NIST schemes are many-time keys derived from the same identity seed; each is certified once by a WOTS key signing a binding digest, and after that signs any number of launches.

SchemeStandardRests onSignaturePublic key
sk_s = keygen_s(HKDF(sk.seed, "qday/scheme/v1", s))
cert_s = WOTS.sign(SHA-256("qday/bind/v1\n" ‖ "address=…\npk=H(pk_s)\nscheme=s"), key i)
d_s = SHA-256("qday/launch-scheme/v1\n" ‖ creator, image, mint, name, scheme, symbol)

The hybrid derives an ed25519 key and an ML-DSA-65 key from one seed; its signature is both signatures together and holds only if both hold, so it stays safe while either assumption survives. The digest names the scheme, so a signature can never be replayed under another one. Implementations: @noble/post-quantum (MIT).

Proof of possession

A login that never asks ed25519. The server issues a 32-byte nonce valid for five minutes for a key your browser names; you sign

SHA-256("qday/proof/v1\n" ‖ "leaf=…\nnonce=…\nwallet=…")

with that key. The server checks the challenge (exists, yours, unused, not expired: 404 / 409 / 410), verifies against your root and writes (identity, key) into the ledger, whose primary key makes one-time use a database rule. A challenge is used up even when the proof fails, so a nonce cannot be tried twice.

Wallets

A wallet here is an ed25519 keypair derived from the identity seed, HKDF(sk.seed, "qday/wallet/v1", index), re-derived in the browser after you unlock and never stored. It registers by signing its own binding, so the server only ever holds public addresses.

Every transfer is signed twice: the derived key signs the Solana transaction (what the chain enforces) and a post-quantum key signs a transfer digest whose hash rides along in an SPL memo. Rotating sweeps a wallet into a freshly derived one and retires the old one.

d = SHA-256("qday/transfer/v1\n" ‖ amount, from, mint, nonce, signer, to)
Be clear about the line. Solana still enforces only the ed25519 signature. The post-quantum half is a quantum-proof record of what you authorised: after a break it proves which transfers were yours and which were forged, but it cannot stop a forged one from executing. Holding value under hash-based keys needs a program on chain that checks them: the quantum vault.

Quantum vault

The vault is a Solana program that holds SOL and SPL / Token-2022 balances at an address only a WOTS signature checked on chain can spend. There is no ed25519 path: the wallet paying the fees cannot move vault funds, and neither can anyone who breaks a curve.

vault[i] = PDA("vault", 0x01, SHA-256(pub.seedᵢ ‖ pk₀ ‖ … ‖ pk₆₆))
seedsᵢ = HKDF(identity seeds, "qday/vault/v1/sk|pub", u32(i))

A withdrawal signs one digest with vault[i]'s one-time key. It names the program, the vault, the recipient, the asset, the amount and the hash of vault[i+1], so that signature allows that exact spend and nothing else:

d = SHA-256("qday/vault-spend/v1" ‖ program ‖ vault ‖ recipient ‖ mint ‖ amount ‖ H(vault[i+1]))

The 2,176-byte payload is written into a buffer account over a few transactions, then the withdraw instruction walks the 67 chains (45 to 990 SHA-256 calls on chain), checks the result derives the vault's own address, pays the recipient, moves the rest into vault[i+1] and turns vault[i] into a permanent tombstone. Anything that lands at a retired address later can be forwarded by anyone, only ever to the vault its tombstone names.

Post-quantum pools

Pools are built on the vault program; there is no separate pool contract. A position is a chain of vaults owned by a pool identity derived from yours under its own label, so pool funds never mix with your personal vault and every withdrawal is the same on-chain WOTS spend.

pool.sk.seed = HKDF(sk.seed, "qday/pool/v1/sk") · pool.pk.seed = HKDF(pk.seed, "qday/pool/v1/pub") · position = vault[0..] of the pool identity

Yield is the pools' share of platform revenue, paid in SOL into each position's live vault every 24 hours by USD value. A position's weight is the smaller of its value now and at the previous payout, so a deposit earns from the payout after it lands. Payouts are plain transfers from a public rewards wallet with a memo.

Quantum holder rewards

A coin can launch with holder rewards: half of its creator fees go to the people who hold it in a quantum vault. The coin's creator on chain is still the treasury; the mode is recorded with the launch and paid from a public rewards wallet.

owed(coin) = 50% × Σ creator fees(coin) − paid(coin)
weight(vault) = min(held now, held at the previous payout)
payout(vault) = owed × weight / Σ weights

Fees per coin come from pump.fun's own trade events (creatorFee on the curve, coinCreatorFee on PumpSwap). Rewards land in the vault itself, so only a hash-based signature can move them, and every payout's memo names the coin.

Encrypted launches

An encrypted launch is sealed before the coin exists. Your browser encrypts the coin's details (address, name, ticker, description, picture, pair) with AES-256-GCM under a fresh random key and publishes only the ciphertext and its SHA-256. The home page shows it counting down; nobody, us included, can see what it is.

c = AES-256-GCM(k, iv, details) · commitment = SHA-256(iv ‖ c) published while sealed · k published with the launch

When the countdown ends, you sign the launch and the key goes with it. Before anything is pinned the server decrypts with that key and compares every field with the coin being launched; one difference and the launch is refused. The coin's page opens the seal again in your browser. AES-256 keeps about 128 bits against Grover, the same margin as SHA-256.

War mode

A war coin's identity is signed by four independent post-quantum algorithms from two different families of hard problems, so forging its origin means breaking hash functions and lattices.

WOTS + Merkle   hash-based, one-time     (spends a key, like every launch)
SLH-DSA-128s    hash-based, stateless    FIPS 205
ML-DSA-65       lattice, Module-LWE      FIPS 204
Falcon-512      lattice, NTRU            FIPS 206 (draft)

Each of the three extra plates signs the coin's scheme digest with a key certified by your root. The server checks all four and every certificate; the coin page checks them again in your browser. The metadata pins each plate's SHA-256 and the full plates are served with the coin. Arming an identity certifies the three keys once, one one-time key each. The dev buy goes into your quantum vault.

Security notes

ForgerySecond-preimage resistance of SHA-256 under the tweakable-hash model: about 2¹²⁸ quantum work.
Key reuseRefused by the leaf ledger, and your browser never hands out a key it signed with before. A dishonest server could accept reuse, so clients never sign twice with one key.
Wallet compromiseAn identity without a passphrase can be re-derived by whoever holds the wallet key, including after a break. A passphrase closes that.
Server compromiseCannot forge attestations (it holds no secrets). It could hide or lie about registrations, which is why the anchor and the IPFS copy exist.
Capacity256 signatures per identity. Many-time keys certified once take the load off the one-time keys.

Parameters

HashSHA-256
WOTSw = 16, 67 chains, 2,144 B
Treeheight 8, 256 keys
Signature2,404 B
Public keyroot ‖ pk.seed, 64 B
Addressqd1 ‖ base58(SHA-256("qday/address/v1" ‖ pk.seed ‖ root)[0..20])
Passphrase KDFscrypt N = 2¹⁵, r = 8, p = 1
Seed KDFHKDF-SHA256
Coin keyHKDF-SHA256(sk.seed, "qday/mint/v1", u32be(i))

Verify it yourself

Every coin page has a Verify button that runs this in your browser. The same thing in code:

import * as Q from 'https://launchonqday.fun/js/pq.js';

const meta = await fetch(metadataUri).then((r) => r.json());
const result = Q.verifyLaunch(
  { mint, creator, name: meta.name, symbol: meta.symbol, image: meta.image },
  meta.qday,
);
console.log(result.ok, result.steps);

Create your identity · Open the verifier · Why this matters now