# Bitcoin Core contributor weighs ways to handle larger post-quantum signatures

Published 2026-11-27 · Crypto.world Team · Crypto.world

> A Bitcoin developer has outlined options for handling post-quantum signatures that exceed the current stack-element limit. The discussion weighs changes to script rules against implementation work and potential resource costs.

Conduition, who has opened a Bitcoin Core pull request on the subject, has set out ways to handle post-quantum signatures that would exceed the current limit on individual stack elements, weighing changes to script rules against potential costs for nodes. In a November 27 post on [Delving Bitcoin](https://delvingbitcoin.org/t/handling-pq-signatures-on-the-stack/3128), the developer said the discussion was motivated primarily by signatures such as SHRINCS.

The current stack-element limit is 520 bytes. Conduition said no post-quantum signature scheme available today, apart from isogenies, has signatures that fit within it.

## A larger limit and its costs

The SHRINCS working group is collaborating with P2MR developers on a Bitcoin Improvement Proposal that would introduce a new tapscript version, redefine the CHECKSIG opcodes and raise the stack-element limit to 6kb. The proposal is being rewritten.

Conduition said raising the limit presents denial-of-service risks to Bitcoin nodes because scripts can duplicate and hash larger elements, consuming more CPU cycles. The post also identifies operations that scan elements byte by byte as potentially slow when repeated.

The discussion assumes a new tapscript version supporting post-quantum signatures, although conduition said most of the ideas would also apply to deployment using OP_SUCCESS. The developer separately opened a Bitcoin Core pull request to store interpreter stack elements as reference-counted objects, describing it as a possible first step toward handling larger elements efficiently.

## Splitting or restricting elements

One option would retain the 520-byte consensus limit and require an opcode needing more data to take multiple stack elements and concatenate them. Conduition said this would avoid implementation-performance work and changes to existing tapscript rules, but would introduce protocol edge cases.

For example, the order of concatenation would need to be standardized. Wallets parsing signatures or placing them in a transaction witness would also have to reproduce the chunking logic, while more complex scripts could require extensive handling of stack elements, according to the post.

Another approach would allow selected opcodes to work on larger elements while making others reject them. Conduition suggested that duplication operations could reject large inputs or be subject to a budget, while signature-checking operations would need to accept them.

The developer said restricting duplication could remove attack vectors involving repeated duplication and hashing or scanning. It could also remove useful script functionality, and the remaining operations would need careful examination for denial-of-service risks.

## Implementation changes and alternatives

A further option is to profile operations whose runtime depends on input size and optimize the most expensive ones. The post suggests techniques including a hash cache, pointers for stack elements and caching an element’s truth value.

Conduition said this work would not be coupled to a Bitcoin Improvement Proposal and could begin without a consensus change. The tradeoff would be more implementation work for nodes and continued scrutiny of the operations’ resource costs.

The post also considers a resource-accounting approach under BIP-440, which would make a script fail if a transaction did not pay for its compute cost. Its drawbacks, as described by conduition, include protocol complexity and the need for further vetting and testing.

A separate signature stack is another possibility: CHECKSIG operations would draw signatures from it, while ordinary stack operations would not act on them. Conduition said that design would limit interpreter denial-of-service risks outside operations touching the signature stack, but would mean scripts could not work with signatures at all.

The approaches could also be combined. One example in the post pairs pointer-based stack representation with restrictions on other operations, such as hashing or scanning.

## Sources

1. Original source [Delving Bitcoin](https://delvingbitcoin.org/t/handling-pq-signatures-on-the-stack/3128) “Handling PQ signatures on the stack” delvingbitcoin.org

## Related stories

- [Delving Bitcoin post proposes 676-byte quantum rescue for legacy outputs](https://crypto.world/news/bitcoin-post-quantum-legacy-utxo-rescue-proposal)
- [Bitcoin Core patches AI-found flaw that could stall nodes](https://crypto.world/news/bitcoin-core-patches-ai-found-node-stalling-flaw)
- [Bitcoin researcher says wallet rebroadcast can link addresses to node IPs](https://crypto.world/news/bitcoin-wallet-rebroadcast-address-node-privacy-risk)
- [Bitcoin proposal would add watch-only and stealth wallet features](https://crypto.world/news/bitcoin-naest-post-quantum-wallet-proposal)
- [Researchers measure a hash-based verifier for Bitcoin bridges](https://crypto.world/news/researchers-measure-post-quantum-bitcoin-bridge-verifier)

## Explore

[More articles](https://crypto.world/news)

---

Canonical: https://crypto.world/news/bitcoin-post-quantum-signatures-stack-options
