
Kaspa researcher Alexander Säfström has proposed two new script opcodes, OpHashChain and OpTxSigHash, to make post-quantum signatures cheaper and more flexible on the network. He posted the idea in the public Kaspa Core R&D Telegram group at 6:51 AM ET on Friday, Dec. 4. Core developer Michael Sutton replied less than an hour later that he liked the suggestion and that it was “worth pondering on.”
Nothing has been written into code or a Kaspa Improvement Proposal (KIP) yet. Opcodes change what every node accepts, so either one would need a hard fork, a network-wide rule change that all nodes must adopt.
What was proposed
Some background first. Kaspa is a proof-of-work network built as a BlockDAG: it keeps parallel blocks instead of throwing them away and orders them with a rule called GHOSTDAG. Coins today are locked with Schnorr or ECDSA signatures, which a large enough quantum computer could break. Since the Toccata hard fork in June, Kaspa also has covenants, coins whose spending rules carry over to the next transaction.
Säfström, who also authored the KIP-16 zero-knowledge verifier opcode, argued that Kaspa should favor hash-based schemes such as SPHINCS+ and SLH-DSA over lattice-based ones. His reason was “simpler security assumptions and verification” that the team “would be able to verify e2e in-house.” The first opcode, OpHashChain, would run the repeated hashing at the heart of those schemes as one native operation. The second, OpTxSigHash, would let custom scripts “sign arbitrary input/output” without fixing the number of inputs and outputs in advance.
He also posted size estimates. A Schnorr signature is 64 bytes, and he put a typical transaction at 316 bytes, or about 2,450 transactions per second. With native opcodes, he estimated ML-DSA-44 at 2,420-byte signatures and 620 transactions per second, and SLH-DSA-128s at 7,856 bytes and 300 per second. These are his own estimates, not measured network figures.
How it ties to Sutton’s vault
The proposal builds on Sutton’s experimental kaspa-ots-chain vault, published Dec. 2. It already runs in script under today’s rules, using 2,080-byte one-time signatures. Säfström said raising the vault’s radix, the base of its hash chains, from 16 to 64 would cut signature size by about 30%. Today, he wrote, that would cost “increased compute mass,” while OpHashChain would make the extra work “negligible.”
Sutton defended his choice: “The current 64×16 was a measured balanced point under current constraints.” On X, community writer vertex (@KaspaScopio) summed up the thread: “Still at the discussion stage, but a promising direction for scaling post-quantum signatures on Kaspa.”
Not everyone in the thread agreed on the direction. FreshAir08, who works on DAGKnight code, said the one-time vault’s main benefit was being “a clearly safe alternative that we can implement now without HF.” He called its statefulness a drawback, because wallets must track which keys are used.
He asked “why go half measures” instead of a stateless scheme like SPHINCS+, and said P2PKH support is “probably more urgent” for most users. Core contributor IzioDev questioned waiting for a hard fork when covenants already allow vaults. He added that if a fork happens, building the vault logic into consensus “seems the definitive approach.”
Why it matters and what to watch
For holders, the debate is about how a quantum-safe Kaspa wallet will look. One path is script-based vaults that work now but require wallets to track key state. The other is native opcodes that would shrink signatures and raise throughput but need a fork.
Säfström has argued for doing both. “i dont think we should wait either, can already start devving,” he wrote, calling the opcode an optimization “for better scalability.”
Builders face a real tradeoff. Bigger signatures mean fewer payments per block, and Sutton’s README estimates 26 vault payments fit in an otherwise empty block.
The thread also touched on risk. FreshAir08 warned that if the discrete log assumption breaks, Kaspa would also have to replace MuHash, the function that summarizes the UTXO set, and suggested having “a HF ready for deploy at a day’s notice.” Säfström replied that “there is no evidence of ecc being broken.”
Sutton has been pushing the covenant angle in public too. “it’s a strategic feature we have. it’s a big deal. if i were a bitcoiner i’d push kip20 very hard,” he wrote on X Friday, referring to KIP-20 covenant IDs.
Watch for a written KIP or draft code for OpHashChain, a decision on whether the next hard fork carries native post-quantum signature checks, progress on Ori Newman’s P2PKH work in kccs PR #37, and an independent audit of the one-time vault. No one in the thread gave a timeline.
Sources
- https://t.me/kasparnd/16641
- https://t.me/kasparnd/16642
- https://t.me/kasparnd/16650
- https://t.me/kasparnd/16653
- https://t.me/kasparnd/16654
- https://t.me/kasparnd/16666
- https://t.me/kasparnd/16674
- https://t.me/kasparnd/16694
- https://t.me/kasparnd/16713
- https://t.me/kasparnd/16714
- https://t.me/kasparnd/16715
- https://x.com/KaspaScopio/status/2128860962681671716
- https://x.com/michaelsuttonil/status/2128844036597268666
- https://github.com/michaelsutton/kaspa-ots-chain
- https://kaspanews.net/kaspa-post-quantum-top-priority/