Q-256: a post-quantum standard for non-fungible tokens

Status Draft 0.3, 2026-12-05 (live on Robinhood Chain testnet)
Name Q-256. P-256 and secp256k1 are the 256-bit curves a quantum computer breaks; Q-256 rests only on 256-bit hashes
Scope Ownership, delegation, minting, content binding and provenance of non-fungible tokens
Reference implementation src/ (Solidity, EVM), sdk/ (JavaScript wallet side), vectors/ (test vectors)

The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are used as in RFC 2119.


Abstract

Every NFT in production today is owned through elliptic-curve signatures: secp256k1 ECDSA on EVM chains, Ed25519 on Solana, NEAR, Sui, Aptos and Cardano, and Schnorr over secp256k1 on Bitcoin. A cryptographically relevant quantum computer (CRQC) running Shor's algorithm recovers the private key from the public key, and almost every NFT holder's public key is already public. The standards themselves (ERC-721, ERC-1155, Metaplex, NEP-171, Ordinals) do not choose their cryptography. They inherit it from the chain's account model, and they add their own classical attack surface: admin keys, upgradeable contracts, off-chain signed orders and permits, bridges and mutable metadata.

Q-256 is a token standard in which no elliptic curve appears anywhere in the protocol's authority path. The only classical piece an account may use is a standard wallet key, held in a slot it can leave with one signature. It has six parts:

  1. A keyring of post-quantum accounts. An account is a 32-byte ID with a rotating commitment to a set of keys. The account is separate from its keys, as on NEAR. Any signature scheme can be used through an immutable verifier contract. The baseline scheme, WOTS-K, uses nothing but keccak-256 and verifies for about 74k gas on any EVM chain today.
  2. A token whose holders are accounts or code, never keys. A token moves only with a signature from its holder account's current key over that exact action, or by a contract that holds it or was approved by its holder. EOAs, including EIP-7702-delegated EOAs, are refused as holders and operators. The token has no owner, no admin and no upgrade path.
  3. Hash-anchored content and post-quantum provenance. Each token is signed into existence by a creator account and bound to the SHA-256 of its metadata. Its URI is a content identifier derived from that hash.
  4. Holdings. Every token has its own address that can hold ERC-20s and ETH, and only the token's holder can take them out. On Robinhood Chain, this puts Stock Tokens inside NFTs.
  5. A key slot that works with today's wallets. Every signature is EIP-712 typed data, so MetaMask and other standard wallets can sign and display it. A wallet key is the one classical part of an account, and it can be swapped for a post-quantum key with one signature, without moving anything.
  6. The Q256 token and vaults. A fixed-supply ERC-20 converts one-to-one, on request, into vault NFTs with on-chain art and their own address for Stock Tokens.

Hash-based one-time signatures are normally hard to use because the signer has to keep state. Q-256 keeps that state on chain: key k signs nonce k and commits to key k + 1, so a wallet needs only its seed and the chain. Expired authorizations can be retired, so a wallet never has to sign a second message with a used key.


1. Are existing NFTs quantum resistant?

No. This section explains why, layer by layer and chain by chain.

1.1 Threat model

Almost every NFT holder has signed at least one transaction (a mint, an approval, a listing), so almost every holder's public key is on chain. For NFTs, "hidden until first use" protects almost no one.

1.2 The six layers of an NFT

Every NFT architecture studied here can be described by six layers. Each must be quantum-safe for the token to be.

Layer What it does Typical cryptography today Under a CRQC
L1 Ownership Who can move the token Chain account signature (ECDSA, EdDSA, Schnorr) Broken: key recovered from public key
L2 Delegation Approvals, operators, delegates, transfer hooks Same as L1, plus operator EOAs Broken through L1 and through EOA operators
L3 Off-chain authorizations Marketplace orders (Seaport, Blur), permits (ERC-4494), lazy-mint vouchers, allowlist signatures, creator verification EIP-712 + ECDSA, Ed25519 Broken: anyone can sign as anyone
L4 Administration Contract owner, proxy upgrade, update/mint/freeze authority, royalty settings, minting policy keys, contract-account keys Admin EOA or multisig of EOAs Broken: whole-collection takeover
L5 Content tokenURI, metadata, media IPFS CID (SHA-256), Arweave tx ID (SHA-256), on-chain data, HTTPS URLs Hash-addressed content survives. HTTPS (RSA/ECDSA certificates) and server-controlled URLs do not
L6 Transport and settlement Consensus, bridges, light clients, ZK compression, VRF reveals BLS/Ed25519 validator signatures, guardian/oracle multisigs, Groth16, ECVRF Mostly broken. Hash-based PoW, STARKs and Merkle trees survive

1.3 Architecture survey

Ethereum and EVM chains

Solana

Bitcoin

NEAR

Other chains

Chain NFT standard Owner representation Key rotation Notes
Cardano CIP-25 (metadata label 721), CIP-68 (reference NFT + datum at a script) Address = Blake2b-224 hash of Ed25519 payment key No: move funds Minting policies are often time-locked single-key scripts. Before the lock, the policy key can mint more
Tezos FA2 (TZIP-12), TZIP-21 metadata tz1 Ed25519 / tz2 secp256k1 / tz3 P-256 / tz4 BLS, hashed No Contract admins are keys
Flow Cadence NonFungibleToken (NFTs are resources in account storage) Account address, with multiple weighted keys (P-256, secp256k1) Yes, native Like NEAR, the asset names an account, so rotation would carry over if a post-quantum algorithm were added
Sui Objects with key + store, Display, Kiosk transfer policies Address = BLAKE2b-256(flag ‖ public key) No Mysten Labs proposes zero-knowledge proofs of knowledge of the EdDSA seed (ePrint 2025/1368, FC 2026) to move to post-quantum keys without changing addresses
Aptos Digital Asset standard (objects) Address with a rotatable authentication key Yes A post-quantum scheme could be added behind the same address
Cosmos CW-721 (CosmWasm), x/nft, ICS-721 over IBC Address = hash of secp256k1 public key No IBC light clients trust validator Ed25519 signatures, which a CRQC can forge
Algorand ARC-3, ARC-19, ARC-69 (ASA with total 1) Ed25519 address Yes (rekeying) Falcon is used in state proofs. Native Falcon accounts are reported for 2026 (secondary source)

Cross-chain NFTs

Wormhole (a 19-guardian secp256k1 quorum), LayerZero ONFT (DVN attestations), ICS-721 (IBC light clients) and most other bridges verify classical signatures. A CRQC that forges a quorum can mint any bridged NFT on the destination chain. Bridged NFTs inherit the weakest chain plus the bridge.

1.4 What survives

Only the hash-based parts survive a CRQC:

Everything that says who may act is broken.

1.5 Conclusions that shape the design

  1. No deployed NFT standard is quantum resistant, and none can become so by itself. The standards never define cryptography. They inherit the chain's account cryptography, and they define classical attack surface of their own (L2 to L4).
  2. Fixing accounts fixes L1, and only L1. NEAR shows that once accounts can rotate to ML-DSA, account-named assets follow. But admin keys, off-chain signatures, operator EOAs, bridges and consensus stay classical until each one is addressed.
  3. Naming accounts instead of keys is the property that matters. NEAR, Flow and Aptos can migrate without moving assets. Solana, Sui, Cardano, Bitcoin and EVM EOAs cannot.
  4. Hashes are the one primitive every chain already has, verifies cheaply and trusts post-quantum. That makes hash-based signatures the conservative baseline. Lattice schemes are the efficient upgrade where chains provide them natively.

2. What NEAR is doing, and what Ethereum is doing

2.1 NEAR

2.2 Ethereum


3. Design goals


4. Specification

4.1 Conventions

4.2 Keyring

4.2.1 Keys, key sets, accounts

4.2.2 Authorization

struct Auth {
    bytes32 account;
    uint64  deadline;
    bytes32 next;        // commitment to move to; 0 = keep the current one
    address verifier;
    uint256 keyIndex;
    bytes32[] keyPath;
    bytes   sig;
}

Every key, hash-based or classical, signs the same EIP-712 digest, so a standard wallet can display exactly what it signs:

domain    = EIP712Domain(name "Q-256", version "1", chainId, verifyingContract = keyring)
message   = Authorization(bytes32 account, uint64 nonce, uint64 deadline, address caller, <Action> action, bytes32 next)
digest    = H(0x1901 ‖ domainSeparator ‖ hashStruct(message))

caller is the contract that asks the keyring to authorize, which is normally the token contract. action is a nested EIP-712 struct (Transfer, Withdraw, ToToken, …, listed in section 7), so a wallet shows, for example, action: Transfer { tokenId: 5, to: 0x…, data: 0x }. Because the outer type string depends on the action, the caller passes two values:

src/libraries/Q256Types.sol holds every type string. sdk/q256.mjs builds the same typed data for wallets.

authorize(auth, authTypehash, action), called by caller, MUST:

  1. revert unless block.timestamp ≤ deadline ≤ block.timestamp + MAX_WINDOW, where MAX_WINDOW is 1 day;
  2. compute the digest with the account's current nonce and caller = msg.sender;
  3. get fingerprint = verifier.recover(digest, sig) by static call, and revert if it is zero;
  4. compute the leaf, fold keyPath by keyIndex, and revert unless the result equals the account's current commitment, or its ID when there is no stored state;
  5. let next' = next if non-zero, else the current commitment. Revert if next' is a spent leaf (a single-key set that could never sign again);
  6. if verifier.oneTime() is true: revert if next' equals the current commitment or the signing leaf is already spent, then mark the leaf spent. A spent leaf never authorizes again, in any account, even if a wallet rotates back to it or keeps it in a larger set. If the key is many-time (a wallet), revert (RotateOnly) if next' differs from the current commitment, unless the action is the keyring's own Rotate(). A wallet signature on an ordinary action can therefore never carry a key change the user could not read;
  7. store next', increment the nonce, and emit Authorized (and KeysRotated if the commitment changed).

rotate(auth) is authorize with caller = keyring and the action Rotate(). It changes keys and does nothing else.

retire(auth, caller, authTypehash, action), callable by anyone, MUST revert unless the authorization cannot execute: block.timestamp > deadline, or deadline > block.timestamp + MAX_WINDOW. Otherwise it performs steps 2 to 7 without running the action and emits Retired instead of Authorized.

4.2.3 Why retire exists

A one-time key that has signed an authorization must never sign anything else. A signature becomes public when its transaction is broadcast, but it is consumed only if that transaction succeeds. Anyone can make it fail: the submitter can give it too little gas, an operator can move the token first, a claim can take a token ID the creator was minting. After a failure the account's current key is still the exposed one.

The wallet then has three safe moves, and re-signing is never one of them:

  1. Rebroadcast the same bytes, if the action can still succeed.
  2. Retire the authorization once its deadline passes. MAX_WINDOW bounds the wait to one day. An authorization whose deadline lies beyond the window can never execute, so it is retirable at once.
  3. Rotate with another leaf of the current set (the recovery key, 6.2) at the same nonce. The exposed signature dies immediately because its nonce is gone.

How much a second signature costs the holder (blind security review, exact calculation over the digit distribution): with two signatures from one WOTS-K key, the median forgery needs about 2^60 hashes and 10% of pairs need 2^36 or less; with three, about 2^31; with four, about 2^20, which is seconds on a laptop.

4.3 Verifiers

interface IKeyVerifier {
    function recover(bytes32 digest, bytes calldata sig) external view returns (bytes32 fingerprint);
    function oneTime() external view returns (bool);
    function scheme() external view returns (bytes32);
}

A verifier MUST be stateless. Its result MUST depend only on its arguments and its code, except that a smart-wallet verifier defers to the wallet contract that the key itself names. It MUST NOT be upgradeable. It MUST return zero for malformed input and MUST NOT revert on it. Schemes that cannot recover a key from a signature (ML-DSA, FN-DSA, SLH-DSA) carry the public key inside sig and return H(publicKey) after a successful verification.

Profiles:

Profile scheme() string One-time Status
WOTS-K q256.wots.keccak.n32w16.v1 yes Normative (section 5). Post-quantum. Reference: src/verifiers/WotsKeccakVerifier.sol
Standard wallet q256.secp256k1.eip712.v1 no Normative. Classical. An ordinary Ethereum key signing the typed data with eth_signTypedData_v4. 65-byte r ‖ s ‖ v, v as 27/28 or 0/1, high-s refused. Fingerprint = the address. src/verifiers/Secp256k1Verifier.sol
Smart wallet q256.erc1271.eip712.v1 no Normative. The wallet contract decides, via ERC-1271. sig = wallet ‖ walletSignature. Fingerprint = the wallet address. The answer must be exactly one word equal to bytes32(0x1626ba7e), so echoing or padded answers fail. EIP-7702-delegated EOAs are refused, since their ECDSA key still rules them. As safe as the wallet's own validation: post-quantum once the wallet validates a post-quantum signature. src/verifiers/Erc1271Verifier.sol
ML-DSA-44 / ML-DSA-ETH q256.mldsa44.eip8051.v1 no Informative. Thin adapter over the EIP-8051 precompile once a fork ships it. sig = publicKey ‖ signature
FN-DSA-512 q256.fndsa512.eip7619.v1 no Informative. Adapter over EIP-7619, or a Solidity verifier on L2s
SLH-DSA-SHA2-128s q256.slhdsa128s.v1 no Informative. Stateless hash-based, about 7.9 KB signatures. Suited to cold recovery keys

Because the verifier and its code hash are part of each leaf, an account adopts a new scheme by rotating to a key set that contains it. No registry, vote or token upgrade is involved.

4.4 Token (IQ256)

4.4.1 Holders

A holder is a bytes32:

A conforming token MUST refuse a contract holder, and an operator, whose address has no code, or whose code is an EIP-7702 delegation designator (0xef0100 ‖ address, 23 bytes). It MUST call onQ256Received(operator, from, tokenId, data) on contract recipients and revert unless the call returns the function's selector. operator is the contract that moved the token by code, or zero when a signature authorized the move. The account that submitted a signed transaction is not authenticated and MUST NOT be passed, because a receiver that credits it (the ERC-721 habit) would credit whoever copied the transaction from the mempool. from and data are authenticated.

4.4.2 Authority

A token MUST accept exactly two kinds of authority:

  1. Account authority. A keyring authorization from the holder account over the action hash below, with caller = the token contract.
  2. Code authority. msg.sender has code that is not a 7702 designator, and is the contract holder, the token's approved operator, or an operator for all of the holder's tokens.

A token MUST NOT accept ECDSA, ERC-1271 or EOA msg.sender authority, and MUST NOT have an owner or admin role that can move, mint, freeze or re-point tokens.

4.4.3 Actions

Function Signer Action hash
transfer(auth, tokenId, to, data) holder H(enc(TRANSFER_TAG, tokenId, to, H(data)))
transferBatch(auth, ids, to, data) holder of all ids H(enc(TRANSFER_BATCH_TAG, H(packed(ids)), to, H(data)))
approve(auth, tokenId, operator) holder H(enc(APPROVE_TAG, tokenId, operator))
setOperator(auth, operator, approved) account H(enc(OPERATOR_TAG, operator, approved))
burn(auth, tokenId) holder H(enc(BURN_TAG, tokenId))
transferFrom(tokenId, to, data) code authority none
approveFrom(tokenId, operator) the contract holder none
setOperatorFrom(operator, approved) the contract holder none

Approvals are cleared on every move. Repeated IDs in a batch MUST fail rather than move twice. A token ID that has been burned MUST NOT be minted again: the reference implementation never clears a token's content hash, and treats a non-zero hash as "this ID has existed".

4.4.4 Events and introspection

event Transfer(bytes32 indexed from, bytes32 indexed to, uint256 indexed tokenId);
event Approval(bytes32 indexed holder, address indexed operator, uint256 indexed tokenId);
event OperatorSet(bytes32 indexed holder, address indexed operator, bool approved);

ERC-165 IDs: IQ256 = 0x3d8496ee, IQ256Content = 0x721a9735. A Q-256 token MUST NOT report ERC-721 (0x80ac58cd). Section 8 explains why it is deliberately not ERC-721 compatible.

4.5 Content and provenance (IQ256Content)

Verifying provenance offline. Fetch the mint or drop transaction. Recompute the digest from (chain ID, keyring, creator account, nonce, deadline, token contract, action, next). Run the verifier's algorithm on the signature in calldata. Check that the fingerprint's leaf belongs to the creator's commitment at that nonce. Commitments chain back to the account ID through KeysRotated events, each of which was itself signed by the previous key, so the whole key history is a self-certifying log that starts at the account ID. No step needs an elliptic curve, an indexer or a live chain.

4.6 Migration of existing NFTs

Q256Wrapper is bound to one legacy ERC-721. A holder calls legacy.safeTransferFrom(eoa, wrapper, id, abi.encode(holderId)) before Q-day. The wrapped token then moves only under Q-256 rules, and unwrap(auth, id, to) returns the original.

Wrapping protects against theft of the owner's key. It does not protect against the legacy collection's own L4: an owner or upgrade key that can rewrite the contract can still take tokens out of the wrapper. Wallets SHOULD show the legacy collection's admin surface before wrapping. Tokens sent with plain transferFrom are not credited and stay in the wrapper. burn is refused on wrapped tokens, since it would strand the original. An approved operator contract can unwrap (unwrapFrom), as with any other move.

After Q-day, a legacy owner cannot be told apart from an attacker who recovered the same key. The only known rescue is a post-quantum proof of knowledge of the wallet seed that derived the key (Mysten Labs for EdDSA; ZKPoSP for BIP-32 HD wallets). Section 12 lists it as future work.

4.7 Holdings and Stock Collections (IQ256Holdings)

Tokens can hold assets. This is what puts Stock Tokens inside a Q-256 NFT.

Backed drops (StockCollection). The creator signs one Merkle root over leaves H(H(enc(BACKED_LEAF_TAG, tokenId, contentHash, backingAsset, backingAmount, feeAsset, feeAmount))). Anyone then calls claimBacked(root, leaf, holder, proof):

  1. The backing is pulled from the caller straight into the token's own holding address.
  2. The fee is pulled from the caller to the collection's immutable payout address.
  3. The token is minted to holder.

The backing never passes through the creator: the token is born holding it. ETH amounts are paid exactly in msg.value. The leaf fixes content, backing and fee, so nobody can mint a token cheaper or with different content.

In a Stock Collection, claimBacked is the only way to mint: the creator's mint and plain claim revert. So no token can exist without the backing its leaf names. Content is never revisable. A creator can still sign two leaves for the same token ID with different terms; the first claim wins, and every claimer pays exactly the leaf they claim.

Factory. StockCollectionFactory.create(creator, name, symbol, uriPrefix, payout, salt) deploys a collection at a CREATE2 address derived from (creator, salt). Anyone may call it. Naming a creator grants nothing, since every mint and drop still needs that creator account's post-quantum signature. This is how anyone launches a Q-256 collection in one transaction.

4.8 Reference market (escrow)

Q256Market (informative) shows how Q-256 tokens trade without reintroducing classical authority, and without basket races:

4.9 The Q256 token and vaults (Q256Vaults)

ERC-404 made one token equal one NFT, converting automatically on every transfer. Q-256 keeps the idea and makes the conversion an explicit action:


5. WOTS-K: Winternitz one-time signatures over keccak-256

Parameters: n = 32 bytes, w = 16, len1 = 64, len2 = 3, len = 67.


6. Wallet requirements

6.0 Standard wallets: the key slot

Users do not need a new wallet. The reference app works like this:

6.1 One-time discipline

6.2 Key sets

Wallets SHOULD give every account at least two leaves. The reference profile pairs them by nonce: the set for nonce k is [hotLeaf(k), recoveryLeaf(k)].

Rotating to a set that still contains a spent one-time leaf is allowed but useless: the keyring refuses that leaf when it signs again.

6.3 Deterministic derivation

acct    = H(enc(H("q256.wallet.account.v1"), masterSeed, chainid, keyring, verifier, accountIndex))
skSeed  = H(enc(H("q256.wallet.sk.v1"),  acct, k))
pubSeed = H(enc(H("q256.wallet.pub.v1"), acct, k))

Key k signs nonce k and commits to key k + 1. The only wallet state is the seed and the signing journal (6.1). The current nonce is read from the chain. Including chainid, keyring and verifier means the same seed never produces the same one-time key on two chains or under two verifier deployments. Account IDs are therefore per chain. Section 12 discusses a shared cross-chain identity.


7. Typed data and tags

Signed actions (EIP-712 struct definitions; the Authorization type string appends the action's definition, as Q256Types.sol and sdk/q256.mjs do):

Action EIP-712 definition Caller
Transfer Transfer(uint256 tokenId,bytes32 to,bytes data) token
TransferBatch TransferBatch(uint256[] tokenIds,bytes32 to,bytes data) token
Approve Approve(uint256 tokenId,address operator) token
SetOperator SetOperator(address operator,bool approved) token
Burn Burn(uint256 tokenId) token
Mint Mint(MintItem[] mints)MintItem(uint256 tokenId,bytes32 holder,bytes32 contentHash) collection
Drop Drop(bytes32 root) collection
Revise Revise(uint256 tokenId,bytes32 contentHash) collection
Seal Seal() collection
Unwrap Unwrap(uint256 tokenId,address to) wrapper
Withdraw Withdraw(uint256 tokenId,address asset,uint256 amount,address to) holdings token
Redeem Redeem(uint256 tokenId,address[] assets,address to) holdings token
ToToken ToToken(uint256 tokenId,address[] assets,address to) vaults
Cancel Cancel(address token,uint256 tokenId) market
Rotate Rotate() keyring

Other tags (keccak-256 of the string):

Constant String
LEAF_TAG q256.keyring.leaf.v1
BACKED_LEAF_TAG q256.backedLeaf.v1
wallet derivation q256.wallet.account.v1, q256.wallet.sk.v1, q256.wallet.pub.v1

8. Rationale


9. Security considerations

  1. Transaction senders are still ECDSA. On today's EVM chains, whoever submits a transaction signs it with ECDSA. In Q-256 that key only pays gas. An attacker who forges a relayer's transaction can submit authorizations, but cannot create or alter them. Front-running a Q-256 authorization executes exactly what the holder signed.
  2. Malicious verifiers. An account that trusts a verifier which accepts anything has no security. This is the holder's choice, made at key-set construction. Wallets MUST only build key sets from audited, known code hashes. Token contracts are unaffected.
  3. One-time key reuse is the main operational risk of WOTS-K, and it comes from failed transactions, not from malice (4.2.3). The keyring enforces what it can see: a one-time leaf authorizes at most once, ever, and accounts cannot be bricked onto a spent single key. It cannot see a second signature that never reached the chain; only the wallet can prevent that (6.1).
  4. Account ID collisions. An account ID matches the contract-holder pattern with probability 2^-96. Matching a specific contract would require a keccak preimage.
  5. Contract holders and operators are only as safe as their code. Q-256 refuses EOAs and 7702-delegated EOAs, but it cannot read a contract's mind. A token sent to an ERC-4337 or Safe-style smart account whose owners sign with ECDSA, or approved to an executor such an account controls, is under ECDSA authority again. The blind review demonstrated both. "No ECDSA key can move a token" holds for tokens held by keyring accounts and by contracts without classical keys; wallets SHOULD warn before sending a token to, or approving, a contract whose authority they cannot classify.
  6. Metamorphic contracts and 7702. Code hashes are pinned for verifiers. Operators and contract holders are checked for code, and for not being a 7702 designator, both when approved or received and when they act. A contract approved in the same transaction that creates and self-destructs it could come back with different code. Holders should approve only contracts that already exist.
  7. Consensus and bridges. Q-256 secures the token layer. If the chain's validators sign with BLS or Ed25519, a CRQC can attack consensus itself (long-range forks, light-client forgery). Q-256 cannot fix that. It removes everything above it. Bridges for Q-256 tokens MUST NOT rely on classical committee signatures. A STARK light client is the intended path.
  8. Content. A token's content hash is immutable unless the collection is revisable and unsealed. The creator account is the only actor who can revise it, and it is post-quantum.
  9. Issuer controls on Stock Tokens reach the collection too. Real Stock Tokens check the spender as well as the parties to a transfer. If the issuer blocks a collection's address, every claimBacked in it stops, and so does every fee-paying claim if payout is blocked. Withdrawals are unaffected, because the holding is the sender. This was verified on a mainnet fork.
  10. 160-bit addresses. Holding addresses are 20 bytes, like every EVM address. A malicious creator chooses the token IDs, so with about 2^80 work (a birthday search over IDs and key pairs) they could find an ID whose holding address they also control as a key. They could then drain that token's backing with the Stock Token's ECDSA permit. 2^80 is beyond any known attacker today but below post-quantum targets. It is a limit of the EVM's address size, not of this design. A quantum attacker targeting an existing holding needs a 160-bit preimage (about 2^80 Grover iterations).
  11. Holdings: what is and is not protected. Q-256 protects the claim on assets at a holding address. It cannot protect an asset from its issuer: Stock Tokens can be blocked, burned, paused or upgraded by Robinhood's keys. Per-token holding addresses keep any such action to one token. Assets sent to the holding address of a burned token are lost. Assets sent before mint go to whoever the token is minted to. A token's value can be reduced by its holder at any time, so buyers rely on escrow or the basket nonce (4.7).
  12. Standard-wallet keys are classical, by design. An account whose key set holds a Secp256k1Verifier leaf is exactly as quantum-safe as that wallet key, until it rotates. The protocol around it is not weakened: every token, holding, mint, content hash and market rule stays post-quantum, and the move to a post-quantum key needs no asset transfer. Marketing MUST NOT call such accounts quantum-safe; "post-quantum protocol, replaceable keys" is accurate.
  13. Smart-wallet keys trust the wallet. An ERC-1271 key is as strong as the wallet's validation and upgrade rules. The verifier forwards all gas on purpose, because post-quantum wallets may need millions of gas to verify. A hostile wallet can only waste the gas of transactions made for its own account.
  14. The Q256 token is classical. ERC-20 balances belong to addresses, so converting to a vault is the step that moves value under Q-256 rules. The conversion contract cannot be paused or administered, and the supply invariant holds on every path, including reentrancy through receiver hooks (all conversion paths are non-reentrant).
  15. Art is predictable. Anyone can preview the art of the next IDs, so collectors may race for IDs whose art they like. This is the known ERC-404 "reroll" dynamic, not a protocol fault.
  16. Censorship and griefing. A holder's nonce moves only when an authorization the holder signed is executed: by the bound contract, for the signed action, before the deadline, or retired after it (or at once, if its deadline lies beyond the window). Anyone may submit it, and doing so only carries out what the holder signed. Gas griefing through a heavy verifier affects only accounts that chose it.

10. Launch chain and mapping to other chains

10.1 Robinhood Chain (launch chain)

Q-256 launches on Robinhood Chain: an Arbitrum Nitro layer 2, chain ID 4663 (testnet 46630), with ETH as gas and data posted to Ethereum blobs.

10.2 Other chains


11. Costs

Measured on the reference implementation (Solidity 0.8.28, optimizer 10,000 runs, Prague) by an independent test suite with forge test --isolate: each call is its own transaction with cold storage, which is what a user pays. "Transaction" adds the 21,000 base and calldata (a signed request is about 2.5 KB).

Operation Execution gas Transaction (est.)
WOTS-K recover, best / median / worst digest 22,000 / 74,000 / 134,000
transfer, account to account 236,000 295,000
transfer, account to contract (receiver hook) 288,000 347,000
transferBatch, 5 tokens, one signature 278,000 338,000
approve / setOperator 256,000 / 254,000 315,000 / 313,000
burn 226,000 285,000
mint, 1 token / 10 tokens 236,000 / 700,000 295,000 / 770,000
commitDrop (any size, one signature) 209,000 268,000
claim, one token (no signature) 86,000 113,000
rotate / retire 221,000 / 213,000 279,000 / 272,000
transferFrom by a contract (no signature) 42,000 65,000

Where the gas goes in a signed action: about 74,000 for WOTS-K verification, about 40,000 for 2.5 KB of calldata, about 22,000 to record the spent leaf, and the account and token storage writes.

For comparison, an ERC-721 transfer costs about 50,000 gas, and lattice verifiers written in Solidity cost about 1.5M (Falcon) and 4.9M (ML-DSA) for verification alone. On rollups the signature goes into blobs and the difference is small.

Deployment: Keyring 870,000; WotsKeccakVerifier 208,000; Q256Collection 2.7M; Q256Wrapper 2.0M. On Robinhood Chain, the shared contracts plus the factory take 8.7M gas.

Per key type, full transactions on a fresh account (independent test suite, --isolate):

Operation WOTS-K Standard wallet Smart wallet
transfer 260,000 128,000 134,000
list (signed transfer into the market) 304,000 170,000 177,000
first withdrawal (deploys the holding) 302,000 168,000 174,000
toToken with one asset 351,000 218,000 224,000
rotate 188,000 53,000 59,000

Unsigned: toVault of one vault, 133,000; of twenty, 600,000. Verifying alone: WOTS-K about 84,000, ECDSA about 4,400, ERC-1271 about 10,500 plus the wallet's own check.

Standard-wallet signatures (reference tests, warm state, execution gas): a signed transfer is about 100,000, against about 130,000 to 236,000 with WOTS-K. toVault (1 vault) is about 121,000. toToken sweeping one asset with a wallet signature is about 229,000. Rendering a vault's art is about 350,000 in a view call (free to read).

Holdings (reference tests, warm state, execution gas): claimBacked with an ERC-20 backing and fee, about 197,000; first withdraw of a token (deploys its holding clone), about 282,000; later withdrawals, about 134,000.


12. Open questions and roadmap

  1. Cross-chain identity. One account ID on many chains without key reuse: a genesis tree with one leaf per chain, or a many-time cold key that authorizes per-chain hot keys.
  2. Post-quantum bridging. Move a Q-256 token by proving source-chain state with a STARK light client, never with committee signatures.
  3. Lattice verifiers. An ML-DSA adapter as soon as EIP-8051 or an equivalent ships, and an SLH-DSA Solidity verifier for cold keys.
  4. Seed-proof rescue. A STARK proof that the prover knows the BIP-39/BIP-32 seed behind a legacy EOA, accepted by a wrapper after Q-day, so owners who missed the window can still migrate (following ePrint 2025/1368 and ZKPoSP).
  5. Marketplace profile. A standard escrow contract (code authority) with post-quantum signed listings.
  6. Royalties. An ERC-2981 equivalent where the receiver is a holder (bytes32), not an EOA.
  7. Formal review. External audit of the keyring and WOTS-K, and submission as an ERC once the interfaces settle.

13. Review history

2026-12-05, draft 0.1. Two reviewers with no context, each working on a comment-stripped copy of the code, given only the promises the system makes to users: one adversarial security review, one independent test suite (150 tests, including fuzzing and invariants). Neither found a way for an outsider to move a token while the wallet behaves correctly. They found:

Finding Severity Resolution
A failed transaction exposes an unconsumed one-time signature, and re-signing leads to forgery (account takeover demonstrated from 4 re-signs) High MAX_WINDOW; far deadlines retirable at once; recovery-leaf profile (6.2); journaling OneTimeSigner (6.1)
SDK read hex strings as raw bytes, leaking most of a key's chains High Strict input types; every signature checked against its key before release
Keyring only refused next == current, so a spent key could become current again Medium Spent-leaf record; spent single-key sets refused as next
A burned token ID could be minted or claimed again, changing its content even in a sealed collection Medium Burned IDs never return
SDK read decimal strings as hex and truncated large numbers Medium Strict input types
The receiver hook credited the transaction submitter as operator Medium Zero operator for signed moves
Tokens held by ECDSA-controlled smart accounts are under ECDSA authority Medium Documented (9.5); cannot be enforced on chain
burn on a wrapped token stranded the original Low Refused
Contract holders could not approve Low approveFrom, setOperatorFrom
Key derivation did not include the verifier address Info Added (6.3)

2026-12-05, round 3 (holdings and Stock Collections). A fresh blind security review, with real-Stock-Token fork tests, found no critical or high issue. Nobody can take assets from a holding they don't control, mint a listed token below its signed terms, or reuse a signature.

Finding Severity Resolution
Buyer protection had holes: holder-wide operator approvals survived withdrawals, and a seller could withdraw and re-approve during a fill Medium Basket nonce enforced when the token moves: operators must use transferFromAtNonce; plain transferFrom is for the holder contract only
A deployed holding refused ETH sent with the 2,300-gas stipend Low Custom clone runtime answers plain ETH without delegating; fallback for ETH with calldata
redeem stranded assets it was not told about Low The redeemer keeps a claim on the burned token's holding
The creator could mint listed IDs unbacked, or revise content after a sale Low Stock Collections mint only through claimBacked; content is never revisable
An operator can empty a basket by moving the token to itself Info Documented: operators have full power over the token and its holdings
Issuer blocks on the spender stop all claims in a collection Info Documented (9.9)
160-bit CREATE2 collision by a malicious creator (about 2^80) Info Documented (9.10)

2026-12-05, round 4 (wallet keys, EIP-712, the Q256 token and vaults). A blind security review and an independent suite of 321 tests (every promise under all three key types, fuzzing, invariants, mutation checks, and 68 SDK-signed calls cross-checked with viem) found no critical issue. Nobody could forge a signature, break the supply rule at the end of a transaction, or take assets from a vault they do not hold.

Finding Severity Resolution
A market purchase did not lock the listing the buyer saw: a cancel, withdraw and relist landing just before it could deliver an emptied token, or charge a different currency High buy names the listing ID, currency and exact price
The SDK signer defaulted to an in-memory journal, so a reload could make a one-time key sign twice Medium The signer refuses to start without an explicit journal
A wallet signature on any action could carry a key change (next) that wallets show as an unreadable hash Low Many-time keys change keys only through Rotate() (RotateOnly)
The supply rule was visibly off inside receiver hooks and asset callbacks, mid-transaction Low All bookkeeping and the token mint settle before any external call
The ERC-1271 check read only 4 bytes, so an echoing contract "signed" anything; EIP-7702 accounts passed as smart wallets Low Exactly bytes32(0x1626ba7e) in exactly 32 bytes; 7702 designators refused
A one-time key in a multi-key set could name itself as the next set and freeze the account Low The spent check on next runs after the signing leaf is marked
Anyone can send assets to a future vault's address Info Documented: a new vault may arrive with gifts

14. References