bitcoin-dev

Ordinal Inscription Size Limits

Ordinal Inscription Size Limits

Original Postby Greg Tonoski

Posted on: December 29, 2023 12:27 UTC

The ongoing discussion in the programming community addresses the concerns regarding the misuse of Bitcoin's witness data storage, with particular emphasis on deterring arbitrary data insertion.

The thread highlights that there has not been a notable increase in problematic behavior or the disruption of valid transactions since the introduction of witness data. However, it is acknowledged that the current incentive structure within the Bitcoin network might encourage the storage of what is deemed 'toxic data' due to the lower costs associated with using witness data as compared to other methods like OP_RETURN, which is more expensive.

A proposal to restore incentives similar to those before the implementation of witness data is on the table, aiming to disincentivize the storage of non-essential data. This approach, however, is suggested alongside other potential solutions rather than focusing solely on prohibiting useless data. The author referred to several initiatives under consideration that could potentially address these issues without seeking an elusive perfect technical fix. Among the suggestions are implementing a size limit for witness data akin to that of OP_RETURN and examining existing pull requests and issues on GitHub:

  • A pull request titled "Disallow new outputs < dust threshold" can be found at PR #28408.
  • An issue discussing "Limit total witness size of a block" is detailed at Issue #29146.

Additionally, there is a notion to deprecate the OP_IF opcode as part of the improvement strategies.

The conversation implicitly poses a question about the future direction of Bitcoin: whether the community prefers a version free from spam and unnecessary data or one where such control mechanisms are absent. This critical topic invites further discussion and consensus within the community on how best to maintain the integrity and functionality of Bitcoin while preventing the blockchain from being cluttered with unwanted data.