[BIP Proposal] OP_TWEAKADD

Posted by jeremy

Sep 6, 2025/21:27 UTC

In a recent discussion on the Bitcoin Development Mailing List, the topic of adjusting the cost associated with the TWEAKADD operation was broached. The suggestion to lower the cost was made, though the precise amount for this adjustment remains uncertain. This uncertainty stems from the relationship between the amount of data involved and the number of operations that can be performed. There is a consideration to be made about potential use cases that might require executing numerous operations sequentially, which would necessitate a careful balance in setting the cost so as not to inadvertently hinder such applications.

Furthermore, there is a notable concern regarding the potential for denial-of-service (DoS) attacks. Specifically, if the cost were set too low, it could enable an actor to chain many of these operations together in a manner that could threaten network stability or performance. This highlights the need for a thoughtful approach in determining the cost, taking into account both utility and security considerations.

Another important point discussed relates to the generation of cryptographic keys and the verification process involved. The necessity for checks within key generation code arises from the potential variability in the sources of entropy used. It's underscored that achieving an invalid tweak through brute force attempts against SHA256 hashed values would be exceedingly difficult, implying that concerns over malleability should be minimal, especially if tweaks remain unhashed. The communication underscores the importance of maintaining network integrity and security while also considering the operational flexibility needed for future use cases.

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