How Q-Day works on Elysium
The post-quantum launchpad on Elysium. Every coin, identity and vault withdrawal is signed with hash-based keys a quantum computer can't forge — and the chain enforces it. This page explains every key, digest and contract, what the chain enforces, and what it does not.
Overview
Q-Day is a launchpad and vault system on Elysium where the important actions are authorised by hash-based, post-quantum signatures, and verified by contracts, not by a server.
PQ identity
A Merkle tree of 256 one-time WOTS keys, derived from one wallet signature. Its root lives in PQRegistry.
Signed launches
Each coin is created with a fresh leaf. The registry burns that leaf on-chain; it can never sign again.
Quantum Account
A smart wallet whose only key is post-quantum. Every action is enforced on-chain; any wallet can relay.
Quantum Vault
Balances keyed by a WOTS key hash. The only way out is a WOTS signature. No owner path, no pause.
Revenue
1% trade fee: 30% to the creator, 40% to quantum holders of that coin, 30% to the protocol, split 60/20/20 into buyback-and-burn, pools and backing.
Compared with a build on a chain that can only record PQ signatures, Elysium is EVM: the sha256 precompile lets contracts verify them. Registration, leaf burning and vault spends are enforced by code.
Threat model
A large fault-tolerant quantum computer running Shor's algorithm recovers a secp256k1 private key from its public key. Every EOA that has sent a transaction has exposed its public key on-chain. Grover's algorithm only gives a square-root speed-up against hash functions, so SHA-256 keeps about 128-bit security.
| Asset | Today | After Q-Day | Q-Day answer |
|---|---|---|---|
| EOA balance | ECDSA | Forgeable | Move value into the Quantum Vault |
| Launch authorship | Wallet signature | Forgeable | XMSS leaf over the launch digest, burned on-chain |
| Identity | Address | Spoofable | Root + pkSeed registered, leaf bitmap on-chain |
| Harvested data | n/a | Old signatures replayable? | Every digest binds chainId + contract + one-time leaf |
Out of scope: wallet malware, a compromised browser tab while keys are in memory, and consensus-level attacks on Elysium itself.
Primitives + ADRS
Everything is built from one primitive, a tweakable hash: F(pkSeed, ADRS, x) = SHA-256(pkSeed ‖ ADRS ‖ x). ADRS is 32 bytes that make every call unique, so a hash computed in one place can never be reused in another.
| Type | Value | a | b | c | Used for |
|---|---|---|---|---|---|
CHAIN | 0 | leaf | chain index (0–66) | step (0–14) | WOTS chain steps |
LEAF | 1 | leaf | 0 | 0 | Compress 67 public values to a leaf |
NODE | 2 | height | node index | 0 | Merkle internal nodes |
SKPRF | 3 | leaf | chain index | 0 | Secret key derivation SHA-256(skSeed ‖ ADRS) |
Layout: [type u32be][a u32be][b u32be][c u32be][16 zero bytes]. The Solidity libraries build the exact same bytes, so TS and EVM agree byte for byte.
| Parameter | Value |
|---|---|
| Hash | SHA-256, n = 32 bytes |
| Winternitz w | 16 (4 bits per digit) |
| Chains | 67 = 64 message + 3 checksum |
| Tree height | 8 → 256 one-time keys |
| WOTS signature | 2,144 B |
| Auth path | 256 B (8 × 32) |
| XMSS signature | 2,404 B (4 B leaf + WOTS + auth) |
| Public key | 64 B (root ‖ pkSeed) |
WOTS one-time signatures
The 32-byte message is split into 64 base-16 digits. A checksum Σ(15 − dᵢ) (at most 960) adds 3 more digits. For each of the 67 digits the signer reveals the value dᵢ steps along chain i.
- Verify: walk each revealed value the remaining
15 − dᵢsteps; the 67 results are the public key. - One-time: two signatures from the same key leak enough chain values to forge. The registry bitmap and vault tombstones make reuse impossible on-chain.
- Cost: verification is at most 67 × 15 = 1,005 SHA-256 calls, cheap with the EVM precompile.
Merkle identities
256 WOTS public keys are hashed into leaves, and the leaves into a binary tree of height 8. The root plus pkSeed is your public identity; the PQ address is q1 + base58(SHA-256("qday/addr/v1" ‖ pkSeed ‖ root)[0..20]).
SHA-256(pkSeed ‖ ADRS(leaf,5) ‖ pk₀…pk₆₆). Hashing up with each auth sibling must reproduce the root stored in PQRegistry.An XMSS signature is leaf ‖ WOTS σ ‖ auth[8]. The verifier recovers the WOTS public key, hashes it into the leaf, then climbs 8 levels with the auth siblings. If the result equals the registered root, the signature is valid. Building the full tree takes about 275k hashes and runs in a Web Worker; secrets stay in tab memory.
Key derivation
No seed phrase to back up. Your wallet signs a fixed message with personal_sign(deriveMessage(address)); the 65-byte r ‖ s ‖ v signature is the input key material.
| Output | Derivation |
|---|---|
| skSeed | HKDF-SHA256(IKM, salt="qday/identity/v1", info="sk:" ‖ address) |
| pkSeed | HKDF-SHA256(IKM, salt="qday/identity/v1", info="pub:" ‖ address) |
| Vault key i | HKDF(skSeed, "qday/vault/v1/sk" ‖ u32be(i)) |
| Pool keys | HKDF(seeds, "qday/pool/v1/…") |
| Scheme key | HKDF(skSeed, "qday/scheme/v1" ‖ scheme) |
secp256k1 determinism check
The same wallet must produce the same identity every time. secp256k1 signatures are deterministic under RFC 6979 in most software wallets, but not in every wallet (some hardware and MPC signers add randomness). So the client signs twice and compares.
- Identical signatures → wallet mode: the signature is the IKM.
- Different signatures → passphrase mode is required. The IKM becomes the scrypt output only (N = 2¹⁵, r = 8, p = 1), salted with your address. The same passphrase on the same address always rebuilds the same tree.
In passphrase mode, the passphrase is your key. Lose it and the identity and any vault funds under it cannot be recovered. Nobody, including us, can reset it.
PQRegistry
Roots, used-leaf bitmaps and identity anchors live on-chain, so no server can lie about them or censor them.
register(root, pkSeed, sig, auth):msg.senderis the wallet, so the ECDSA side comes from the transaction itself. The contract verifies leaf 0 over the registration digestsha256(abi.encode("qday/register/v1", chainId, registry, wallet, root, pkSeed))and storesIdentity { root, pkSeed, uint256 usedLeaves }.- Leaf bitmap: 256 leaves fit exactly in one
uint256. Bit i set means leaf i has signed and is dead. Leaf 0 is spent at registration. consumeLeaf(wallet, leaf, msg, sig, auth): only authorised consumers (the launchpad). Verifies against the root and sets the bit; a set bit reverts withLeafUsed.- Views:
identityOf(address),isUsed(wallet, leaf),nextLeaf(wallet). One identity per wallet. EmitsRegistered(wallet, pqAddressHash, root, pkSeed).
Tree rotation (a WOTS signature from the old tree over a new root) is a later upgrade; until then an identity has 255 usable signatures.
Launchpad
CREATE2 prediction
Each QDayToken (ERC-20, 1,000,000,000 supply, 18 decimals) is deployed with CREATE2 and salt keccak256(creator, leaf). predictToken(creator, leaf) returns the address before anything is signed, so the signature covers the exact contract that will exist.
Launch digest
digest = sha256(abi.encode(
"qday/launch/v1", chainId, launchpad, creator, token,
keccak256(bytes(name)), keccak256(bytes(symbol)), keccak256(bytes(image)),
uint32 leaf, uint8 schemeId,
keccak256(abi.encode(opts)) // v2: LaunchOpts, see Quantum Lock & fair start
))The contract rebuilds this from calldata, so the signature cannot be moved to another chain, launchpad, creator, image or set of launch options. The metadata URI is stored and emitted but not signed, because the metadata itself carries the signature.
Bonding curve
- Constant product on virtual reserves, starting at 30 HYPE-equivalent and 1.073B tokens. 800M tokens are sold on the curve. Parameters are set in the constructor and immutable.
buy(token, minOut),sell(token, amount, minHype),quoteBuy,quoteSell,curve(token). Slippage limits are enforced on-chain.- When the curve sells out it is
completeand liquidity migrates to the configured DEX adapter. Where no adapter is configured, trading continues on the curve until an adapter is set.
1% fee
Every trade pays 1% of the HYPE side to RevenueRouter.notifyFee. 30% of it goes to the creator; see Creator rewards.
Same-tx dev buy
create(…) is payable. The dev buy executes in the same transaction as deployment, so no one can buy ahead of the creator. With lockDays > 0 the dev buy vests in Quantum Lock. With toVault != 0 (quantum mode) the dev-buy tokens go straight into the Quantum Vault under that key hash.
Quantum Vault
Balances are mapping(bytes32 keyHash => mapping(address token => uint256)), with up to 16 tokens per vault. A key hash is SHA-256(pubSeed ‖ pk₀…pk₆₆) for one WOTS key.
next.Single-transaction withdraw
withdraw(pubSeed, sig[67], recipient, token, amount, nextKeyHash) recovers the WOTS public key from the signature over sha256(abi.encode("qday/vault-spend/v1", chainId, vault, pubSeed, recipient, token, amount, nextKeyHash)), derives the key hash, and checks the balance. No intermediate buffer, no second transaction. token = 0 means HYPE.
Roll-over
The recipient is paid, then every remaining balance (all tokens) moves to nextKeyHash. The next key has never signed, so its public values were never revealed.
Tombstones
The spent key hash is marked dead forever with its next. Deposits sent to a tombstone are forwarded automatically, and forward(keyHash, token) lets anyone push stray balances along. There is no owner path to user funds and no pause on withdraw; the contract uses a reentrancy guard.
Quantum Account
A QuantumAccount is a whole smart wallet whose only key is a two-layer XMSS hypertree: 256 subtrees of 256 WOTS leaves, 65,536 signatures under one root (see Hypertree). There is no ECDSA owner, no admin and no upgrade path: every call it makes is authorised by a post-quantum signature that the contract verifies itself with the shared XMSS.sol library.
Deployment
QuantumAccountFactory.predict(root, pkSeed) returns the address before deployment; deploy(root, pkSeed) is idempotent and uses CREATE2 with salt keccak256(root, pkSeed). You can receive funds at the predicted address first. The account accepts HYPE, ERC-20, ERC-721 and ERC-1155.
Exec digest
struct Call { address to; uint256 value; bytes data; }
digest = sha256(abi.encode(
"qday/account-exec/v1", chainid, account, nonce, deadline,
keccak256(abi.encode(calls))
))
execute(Call[] calls, uint256 deadline, HTSig s) // HTSig: see HypertreeThe digest binds the chain, the account, the current nonce, a deadline and the exact batch of calls. The contract checks deadline ≥ block.timestamp, verifies the hypertree signature against root, requires the index to be unused, sets its bit, increments nonce, then runs the calls under a reentrancy guard. It emits Executed(nonce, leaf, digest, calls).
Relaying
Anyone can submit execute: any EOA can relay and pay the gas. The relayer has no authority. A changed call, value, deadline or account breaks the signature, and a replay fails because the leaf bit and nonce are already spent. Your everyday wallet can relay for you, and its ECDSA key never controls the account.
Rotation
A root signs 65,536 times, so rotation is rarely needed. nextIndex() returns 65,536 when it is full. A rotation is signed like any action:
digest = sha256(abi.encode(
"qday/account-rotate/v1", chainid, account, nonce, deadline, newRoot, newPkSeed
))
rotate(newRoot, newPkSeed, deadline, HTSig s) // emits Rotated(oldRoot, newRoot)The address and all balances stay the same; only the key tree changes.
Security
- Enforced, not recorded: the chain refuses any action without a valid XMSS signature. Elliptic-curve keys play no part in authorisation.
- One-time leaves: the on-chain bitmap makes leaf reuse impossible, which is what keeps WOTS secure.
- No owner: no admin path, pause or upgrade exists. If you lose the key material (wallet signature plus passphrase), nobody can recover the account.
- Deadlines: a signed batch expires, so a relayer cannot hold it and submit later.
- Limits: a relayer can choose not to submit or can front-run with the same signed batch, which only executes what you signed. Gas is still paid from an EOA.
Hypertree: 65,536 signatures, one root
The Quantum Account key is XMSSMT with two layers of height 8. The top tree (layer 1) has 256 leaves; top leaf t signs the root of subtree t (layer 0), whose 256 leaves sign actions. 256 × 256 = 65,536 one-time keys under one 32-byte root, with no rotation needed in normal use.
struct HTSig {
uint16 index; // high byte = subtree t (0..255), low byte = leaf l (0..255)
bytes32[67] sig; // bottom WOTS sig of the action digest, leaf l of subtree t
bytes32[8] auth; // bottom auth path to subRoot
bytes32 subRoot; // root of subtree t
bytes32[67] topSig; // top WOTS sig (leaf t) over certDigest; zeros once certified
bytes32[8] topAuth; // top auth path to root; zeros once certified
}Certifying a subtree
certDigest = sha256(abi.encode("qday/ht-cert/v1", chainid, account, uint8 t, subRoot))The first action in subtree t verifies topSig over the cert digest against the account root, stores subRootOf(t), burns top leaf t and emits SubtreeCertified(t, subRoot). Later actions in that subtree only require subRoot == subRootOf(t), so they cost about one XMSS verify.
Layer in ADRS
The layer number is part of every ADRS, so a hash computed in a top-tree chain can never equal one in a subtree chain. A signature from one layer cannot be replayed as the other. Vault and launchpad verification are unchanged.
Keys
Subtree secrets are subkey(skSeed, "qday/account/v3/sk", layer ‖ t). The client builds only the top tree and the subtree in use, lazily, in a Web Worker. Views: subRootOf(t), isUsed(index), nextIndex(), capacity() = 65,536.
Gas
| Function | Median gas | Max gas |
|---|---|---|
PQVerifier.verifyXMSS | 219,393 | 219,393 |
QuantumAccount.execute (first in subtree) | 694,748 | 694,748 |
QuantumAccount.execute (certified subtree) | 350,911 | 350,911 |
QuantumAccount.rotate | 388,347 | 388,347 |
QuantumVault.withdraw | 451,892 | 451,892 |
QDayLaunchpad.create | 1,413,010 | 1,413,010 |
PQVerifier
A stateless, view-only contract that exposes the same verification the accounts, launchpad and vault run. Anyone can call it with eth_call, for free, to check a signature against the chain's own code.
function verifyXMSS(bytes32 digest, bytes32 root, bytes32 pkSeed, uint32 leaf,
bytes32[67] calldata sig, bytes32[8] calldata auth) view returns (bool ok, bytes32 computedRoot);
function wotsPkFromSig(bytes32 digest, bytes32 pkSeed, uint32 leaf,
bytes32[67] calldata sig) view returns (bytes32 leafHash);It holds no state and no funds, and has no owner. Its address is in Contracts & addresses.
Creator rewards
30% of every coin's 1% fee goes to its creator. The share is an immutable basis-point constant in RevenueRouter (creatorBps()).
- If the launch set
creatorKeyHash, the share is credited to that key in the Quantum Vault, so it can only leave with a WOTS signature. - If
creatorKeyHash = 0, the share accrues for the creator address and is claimed withclaimCreator(token). - Views:
creatorEarned(token),creatorClaimable(token). Each payment emitsCreatorPaid(token, creator, keyHash, amount).
Quantum Lock & fair start
Both are set at launch in LaunchOpts. The launch digest appends keccak256(abi.encode(opts)) as its last field, so the lock and anti-sniper settings are signed with the coin.
struct LaunchOpts {
bytes32 creatorKeyHash; // creator rewards destination (0 = claimable by creator)
uint32 lockDays; // 0, 7, 30, 90 or 180
uint16 fairStartSecs; // 0..300, default 60
uint16 maxBuyBps; // 10..200 bps of supply, default 100 = 1%
}Quantum Lock
With lockDays > 0 the dev-buy tokens go to QDayLock and vest linearly with no cliff:
vested(t) = amount × min(1, (t − start) / (end − start)) end = start + lockDays × 1 day
claimable = vested(t) − claimedclaim(token) sends the claimable amount to the creator's vault key hash via QuantumVault.deposit, or to the creator if the key hash is 0. Event Locked(token, creator, amount, start, end); views lockOf(token) and vested(token).
Fair start
For fairStartSecs after launch, buys pay an extra sniper fee on top of the 1% base, decaying linearly to zero, and each wallet is capped at maxBuyBps of supply:
sniperFeeBps(t) = 2000 × (end − t) / fairStartSecs for start ≤ t < end, else 0
maxBuy = supply × maxBuyBps / 10000The extra fee goes 100% to that coin's holder reserve. Views: opts(token), fairStart(token) returns (start, end, maxBuy), and sniperFeeBps(token).
Revenue split
| Share | Destination | Who moves it | Cap |
|---|---|---|---|
| 30% of each coin's fees | Creator (vault key hash, or claimable via claimCreator) | Router on each fee | Exactly 30% × fees |
| 40% of each coin's fees | That coin's quantum holders (vault credits) | Keeper: payHolders | ≤ 40% × fees − already paid, per coin |
| 30% × 60% = 18% | Buy $Q/DAY and burn | Keeper: buybackAndBurn | ≤ buybackBal, minOut enforced |
| 30% × 20% = 6% | Quantum pools yield | Keeper: payPools | ≤ poolsBal |
| 30% × 20% = 6% | Backs top-performing coins | Owner via 48 h timelock | Public address, visible on /revenue |
- Split constants are immutable basis points that sum to 10,000. Each fee emits
Fee(token, amount, toCreator, toHolders, toBuyback, toPools, toBacking). - Sniper fees from a fair-start window are separate and go 100% to that coin's holder reserve.
- Keeper caps: the keeper can only credit vaults, and only up to the on-chain balance of each bucket. It cannot send fees to an arbitrary address.
- Holder weights are
min(balance now, balance at previous snapshot)from vault events, so depositing just before a payout earns nothing for that round. - Backing timelock: backing funds leave only after a 48-hour public delay. Ownership is two-step and the keeper can be rotated.
Season points
Season 1 points are computed off-chain and deterministically, from on-chain events only. Points are tracked for Season 1; no token amount is promised.
| Action | Points |
|---|---|
| Register a PQ identity | 100 |
| Deploy a Quantum Account | 200 |
| Each Executed account action | 10 (max 50/day) |
| Launch a coin | 300 |
| Launch with lockDays ≥ 30 | +100 |
| Holding in a vault or Quantum Account | 1 per 1 HYPE-value per day (daily snapshot, min(now, previous)) |
| Trading volume on Q-Day coins | 5 per 1 HYPE |
| Referral (?ref=<address> stored at identity registration) | 10% of the referee's points |
API: GET /api/season/leaderboard?limit=100, GET /api/season/[address] returns { points, rank, breakdown, ref }, and GET /api/season/card/[address] returns a share card.
Pools
Deposit HYPE, $Q/DAY or any supported token into a pool position, a chain of Quantum Vault keys under your pool seeds. Pools receive 20% of platform revenue after the holder share, paid by payPools as vault credits, weighted by USD value with the same min(now, previous) rule. A deposit starts earning at the next payout. Exiting a position is a normal vault withdraw, so it needs a WOTS signature.
Exposure Scanner
/scan checks one address on Elysium (99901), Ethereum, Base, Arbitrum, BNB Chain and HyperEVM, in parallel with timeouts. For each chain it reads the nonce, the native balance and the code size.
| Reading | Status | Why |
|---|---|---|
| nonce > 0 | Exposed | The address has signed a transaction, so its public key is on chain. Shor's algorithm can turn that key into the private key. |
| nonce = 0 | Hidden | Only the address hash is public. Still ECDSA: the key is exposed the moment it signs. |
| code size > 0 | Contract | Authority depends on the contract's own logic, not on one ECDSA key. |
Balances on exposed chains are shown as at risk at Q-Day. Results are cached for 60 seconds. "Move it under a quantum key" opens the Quantum Account in shield mode.
Signature Inspector
/verify signs any message with WOTS and shows the work: each of the 67 chains with its digit, the steps the signer walked and the steps the verifier walks, then the auth path climbing the Merkle tree to the root.
- Use your derived identity, or an ephemeral key that lives only in memory and is never stored.
- The signature is verified in the browser, then with
eth_calltoPQVerifier.verifyXMSS; the root the chain returns is shown next to the expected one.
Encrypted launches
The creator encrypts the coin details with AES-256-GCM under a random key. While sealed, only the ciphertext and the commitment SHA-256(iv ‖ ciphertext) are public, and a countdown runs on the home page. The creator then publishes the key; the server decrypts, checks every field against the commitment and the signed launch digest, and refuses any mismatch.
Sealing hides the details from people watching the site. Once the create transaction is broadcast its calldata is public, as with any on-chain action.
War mode
War mode signs one launch with three independent schemes, or "plates": WOTS, ML-DSA-65 and SLH-DSA-128f. A break in any one family still leaves two standing.
- The WOTS plate is verified on-chain by the registry when the leaf is consumed.
- The other two are verified off-chain with
@noble/post-quantumbefore the metadata is pinned, and each plate's SHA-256 is pinned in the metadata so anyone can recheck it. - Arming costs one leaf to bind each extra key. The dev buy goes to the vault.
Schemes
The native scheme is WOTS + Merkle and is the only one the contracts verify. Other NIST-standard schemes can sign a launch after a WOTS leaf binds their public key once with H("bind" ‖ qAddr ‖ scheme ‖ H(pk)). The scheme ID is part of the launch digest and the Launched event.
| Scheme | Signature | Public key | Verified |
|---|---|---|---|
| WOTS(w=16) + Merkle(h=8) | 2,404 B | 64 B | On-chain (registry) |
| ML-DSA-65 (FIPS 204) | 3,309 B | 1,952 B | Off-chain, @noble |
| ML-DSA-87 (FIPS 204) | 4,627 B | 2,592 B | Off-chain, @noble |
| SLH-DSA-SHA2-128s (FIPS 205) | 7,856 B | 32 B | Off-chain, @noble |
| SLH-DSA-SHAKE-128f (FIPS 205) | 17,088 B | 32 B | Off-chain, @noble |
| secp256k1 + ML-DSA-65 hybrid | both must verify | ECDSA in tx + ML-DSA off-chain |
Proof of possession
Prove you control a PQ identity without moving funds:
POST /api/proof/challengereturns a 32-byte nonce with a 5-minute TTL.- The client signs
sha256(abi.encode("qday/proof/v1", leaf, nonce, wallet))with its next unused leaf (read from the registry). POST /api/proof/verifychecks the signature against the on-chain root.
| Response | Meaning |
|---|---|
| 200 | Valid; the leaf is added to the server-side burned set |
| 404 | No challenge for this wallet |
| 409 | Wrong signature or leaf already used |
| 410 | Challenge expired |
The challenge is consumed even when verification fails. Proof leaves are burned server-side, not on-chain, so the registry bitmap only reflects on-chain actions.
Honest threat model
| Protected after Q-Day | Not protected | |
|---|---|---|
| Quantum Account funds | Yes. Only a hypertree signature authorises calls; there is no ECDSA, owner or admin path | Lost key material: nobody can recover the account |
| Relayer | A relayer pays gas with its ECDSA key but has no authority. It cannot change what you signed | A relayer can decline to submit; any other EOA can submit instead |
| Your EOA's own funds | Only once moved into a Quantum Account or the vault | Funds left in the EOA stay ECDSA, exposed once that address has signed |
| Quantum Vault | Yes. Only a WOTS signature moves funds | — |
| Launch authorship | Yes. A burned leaf of your identity | Registration itself also uses the wallet's ECDSA transaction |
| Seed | Never stored; re-derived from a wallet signature each session | Malware or a compromised tab while keys are in memory |
| Leaf reuse | On-chain bitmap, plus a cross-tab lock before signing | — |
| Keeper payouts | Totals capped on-chain | Weights are computed off-chain |
Hash-based signatures rely only on SHA-256 preimage and second-preimage resistance; Grover leaves about 128-bit security.
Security analysis
Plainly: your Elysium wallet (EOA) is still secured by ECDSA. Q-Day cannot change how the chain authorises ordinary transactions. What enforces post-quantum security is the PQRegistry (identity and leaf use) and the Quantum Vault (funds that only a WOTS signature can move).
| Property | Enforced by | Notes |
|---|---|---|
| Launch authorship | Registry + launchpad, on-chain | A quantum attacker with your ECDSA key still needs an unused leaf signature to launch as your identity |
| Leaf one-time use | Registry bitmap, on-chain | Reuse reverts with LeafUsed |
| Vault funds | QuantumVault, on-chain | No ECDSA or owner path; roll-over on every spend |
| Tokens held in an EOA | ECDSA only | Not PQ-protected; use the vault |
| Registration | ECDSA (tx sender) + WOTS leaf 0 | A future attacker who forges ECDSA could register a new wallet, but cannot take over an existing identity |
| Holder / pool payouts | Keeper, capped on-chain | Keeper chooses weights off-chain; totals are capped by contract balances |
| Backing funds | Owner, 48 h timelock | Policy, publicly visible |
| War-mode non-WOTS plates | Server + public metadata | Recheckable by anyone, not enforced by the chain |
- Hash security: WOTS + Merkle with SHA-256 relies only on preimage and second-preimage resistance. Grover leaves about 128-bit security.
- Key exposure: secrets exist in browser memory while the tab is open. Malware on your device defeats any scheme.
- Leaf exhaustion: a PQ identity in the registry has 255 usable leaves; a Quantum Account root has 65,536.
- Contracts: the code is public and verified on the explorer. Size your deposits to your own risk tolerance.
Contracts & addresses
Toolchain: Foundry, solc 0.8.26, via_ir, IPFS metadata hash. Source is verified on the Elysium explorer so you can match bytecode yourself.
Network setup
The app adds and switches to Elysium automatically. To add it by hand:
Verify it yourself
You do not need to trust this site. The snippet below rebuilds a launch digest and the Merkle root from public data, using only viem and a SHA-256 implementation. The same check runs in the Verify button on every coin page.
// npm i viem @noble/hashes
import { createPublicClient, http, encodeAbiParameters, keccak256, toBytes, hexToBytes, bytesToHex } from "viem";
import { sha256 } from "@noble/hashes/sha2";
const RPC = "https://rpc.elysium.kinetiq.xyz";
const client = createPublicClient({ transport: http(RPC) });
// --- tweakable hash: SHA-256(pkSeed ‖ ADRS ‖ x...) --------------------------
const u32 = (n: number) => { const b = new Uint8Array(4); new DataView(b.buffer).setUint32(0, n); return b; };
const adrs = (type: number, a = 0, b = 0, c = 0) => {
const o = new Uint8Array(32); o.set(u32(type), 0); o.set(u32(a), 4); o.set(u32(b), 8); o.set(u32(c), 12); return o;
};
const cat = (...p: Uint8Array[]) => { const o = new Uint8Array(p.reduce((s, x) => s + x.length, 0)); let i = 0; for (const x of p) { o.set(x, i); i += x.length; } return o; };
const thash = (seed: Uint8Array, ad: Uint8Array, ...x: Uint8Array[]) => sha256(cat(seed, ad, ...x));
// --- WOTS digits: 64 nibbles + 3-digit checksum ------------------------------
function digits(msg: Uint8Array): number[] {
const d: number[] = [];
for (const byte of msg) d.push(byte >> 4, byte & 15);
const csum = d.reduce((s, x) => s + (15 - x), 0); // ≤ 960
d.push((csum >> 8) & 15, (csum >> 4) & 15, csum & 15);
return d;
}
// --- rebuild the root from a launch signature ---------------------------------
function rootFromSig(pkSeed: Uint8Array, leaf: number, sig: Uint8Array[], auth: Uint8Array[], msg: Uint8Array) {
const pk = digits(msg).map((di, i) => {
let v = sig[i];
for (let j = di; j < 15; j++) v = thash(pkSeed, adrs(0, leaf, i, j), v); // ADRS type 0 = chain
return v;
});
let node = thash(pkSeed, adrs(1, leaf), ...pk); // type 1 = leaf
let idx = leaf;
for (let h = 0; h < 8; h++) {
const parent = idx >> 1;
node = idx & 1
? thash(pkSeed, adrs(2, h + 1, parent), auth[h], node) // type 2 = node
: thash(pkSeed, adrs(2, h + 1, parent), node, auth[h]);
idx = parent;
}
return node;
}
// --- launch digest, byte-identical to the contract ----------------------------
type LaunchOpts = { creatorKeyHash: `0x${string}`; lockDays: number; fairStartSecs: number; maxBuyBps: number };
function launchDigest(f: { chainId: bigint; launchpad: `0x${string}`; creator: `0x${string}`; token: `0x${string}`;
name: string; symbol: string; image: string; leaf: number; schemeId: number; opts: LaunchOpts }) {
// keccak256(abi.encode(LaunchOpts)) — static tuple (bytes32, uint32, uint16, uint16)
const optsHash = keccak256(encodeAbiParameters(
[{ type: "bytes32" }, { type: "uint32" }, { type: "uint16" }, { type: "uint16" }],
[f.opts.creatorKeyHash, f.opts.lockDays, f.opts.fairStartSecs, f.opts.maxBuyBps],
));
const enc = encodeAbiParameters(
[{ type: "string" }, { type: "uint256" }, { type: "address" }, { type: "address" }, { type: "address" },
{ type: "bytes32" }, { type: "bytes32" }, { type: "bytes32" }, { type: "uint32" }, { type: "uint8" }, { type: "bytes32" }],
["qday/launch/v1", f.chainId, f.launchpad, f.creator, f.token,
keccak256(toBytes(f.name)), keccak256(toBytes(f.symbol)), keccak256(toBytes(f.image)), f.leaf, f.schemeId, optsHash],
);
return sha256(hexToBytes(enc));
}
// Then: read identityOf(creator) from PQRegistry, take sig/auth from the coin's
// metadata (ipfs) or the create() calldata, and check
// bytesToHex(rootFromSig(pkSeed, leaf, sig, auth, launchDigest(...))) === root
// and isUsed(creator, leaf) === true.FAQ
Do I need a new wallet?
No. Any EIP-6963 or WalletConnect wallet on Elysium works. Your PQ identity is derived from one signature of that wallet.
Does signing the derive message cost gas?
No. It is a personal_sign message, not a transaction. Registering the identity is one transaction.
Why did the app ask for a passphrase?
Your wallet produced two different signatures for the same message, so it is not deterministic. Without a passphrase your identity would change every time. See Key derivation.
What happens when I use all 256 leaves?
Leaf 0 signs registration, leaving 255 for launches and proofs. Tree rotation to a new root is a planned upgrade; until then a wallet holds one identity.
Can the team move my vault funds?
No. The vault has no owner withdrawal and no pause on withdraw. Only a valid WOTS signature for that key hash moves funds.
What if I lose my browser data?
Nothing is lost. Sign the derive message again with the same wallet (plus your passphrase, if you use one) and the same tree and vault keys are rebuilt. The live vault is the first key that is not a tombstone, which the app finds by reading the chain.
Is my EOA now quantum-safe?
No. The EOA is still ECDSA. Keep long-term value in the Quantum Vault.