Segwit commitment to post-quantum witness data?

Posted by ajtowns

Jul 13, 2026/19:33 UTC

In the realm of blockchain technology, particularly within Bitcoin development, there is an evolving discussion surrounding the encoding of witness data and its implications for transaction authorization and network compatibility. A notable aspect is the introduction of a style byte for each transaction input (txin), which categorizes the authorization type and associated data weighting. Traditional inputs follow a 1:1 weight ratio, whereas Segregated Witness (segwit) inputs benefit from a more favorable 1:4 ratio. Newer proposals, like post-quantum data (pqdata), introduce different weightings that could potentially affect how transactions are processed and validated.

One critical point in this discussion is the non-permissibility of using multiple authorization types within a single transaction input. For instance, a transaction cannot simultaneously employ a segwit witness and a post-quantum signature under the current protocol structure. This limitation impacts potential rescue protocols that might have leveraged such composite approaches, as highlighted in a recent discussion.

Furthermore, the proposal suggests that witness data could be "collapsed" to style 0 by replacing it with a commitment to the full data, incorporating a single element consisting of the style byte followed by a tagged hash. This approach aims to streamline data processing while retaining important transaction details through an annex entry. The annex would function similarly to extensions in traditional software, allowing additional transaction attributes like per-input lock times or assertions about block hashes at specific heights, while still accommodating new authorization encodings.

Moreover, handling of styled-witness data necessitates an annex commitment, ensuring that essential transaction elements are preserved even when the data is absent. For instance, a proposed 41-byte annex might represent both a pqdata commitment and a specific lock height, thus merging crucial transaction parameters into a compact format.

Lastly, the issue of network compatibility arises with styled witnesses. Nodes that do not support a particular witness style must collapse the data to a basic format (style 0) to ensure they only process known and supported data types. This precaution helps prevent the acceptance and propagation of blocks that contain unsupported or undefined data, which is vital for maintaining blockchain integrity across different node versions and capabilities. Thus, implementing these enhancements requires careful consideration of both technological impact and backward compatibility.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback