segOP potential BIP discussion

Oct 29 - Oct 29, 2025

  • The segOP (Segregated OP_RETURN) proposal by Defenwycke introduces a significant enhancement to Bitcoin transactions, aiming to create a dedicated, structured, full-fee data lane for on-chain data.

This initiative seeks to address the inefficiencies and limitations of the current transaction format, particularly concerning arbitrary data storage and management. By proposing a system that is reminiscent of Segregated Witness (SegWit) in its design philosophy, segOP offers a segregated data section that ensures backward compatibility with legacy nodes while introducing mechanisms for fair fee assessment and structured data handling.

At the core of the segOP proposal is the introduction of a new transaction section cryptographically committed via an OP_SUCCESS184 operation. This facilitates a standardized approach to on-chain metadata storage through TLV (Type-Length-Value) encoding, a 100 KB cap on data size, and enforcement of full transaction fees for data storage. Importantly, segOP is designed as a soft fork, ensuring safety and future-proofing without necessitating a hard fork or disrupting existing operations.

The operational framework of segOP involves several key procedures, including the construction of TLV chunks for data representation, the assembly of these chunks into a Merkle tree for efficient and secure data commitment, and the inclusion of a special P2SOP output in transactions that serve as an anchor for the segOP data. This system preserves the integrity and spendability of transactions under pre-segOP rules for legacy nodes while leveraging new rules for enhanced data handling and verification by upgraded nodes.

Policy rules surrounding segOP transactions aim at maintaining network health by enforcing size limits to prevent block bloat, applying full fee rates to ensure fairness, and conducting standardness checks to maintain uniform behavior across the network. Validation of segOP transactions by nodes includes detecting segOP sections, verifying compliance with size and fee requirements, and confirming the accuracy of the Merkle root against the committed data.

Further aspects of the proposal detail the integration of segOP transactions within the broader Bitcoin network, including their relay, inclusion in blocks, and the potential for exposure through RPC or indexing APIs by miners. The proposal also outlines the implications for light clients, which can benefit from the Merkle structure for efficient proof requests and verifications, and discusses post-activation behaviors that ensure consensus alignment and extend the utility of segOP through potential future consensus rule changes.

In essence, the segOP initiative represents a comprehensive effort to enhance Bitcoin's data handling capabilities by introducing a structured, fair-fee, and backward-compatible mechanism for on-chain data storage. This approach not only addresses existing challenges such as witness discount abuse and unstructured data but also lays the groundwork for future innovations in Bitcoin transaction processing and metadata management.

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