New BIP: Dealing with OP_IF and OP_NOTIF malleability in P2WSH



Summary:

In an email thread on the Bitcoin-dev mailing list, Russell O'Connor suggested that it is more effective to not relay a transaction rather than mess with its witness data if one's goal is to prevent it from being mined. If two transactions have the same transaction ID but different witness data, miners and good nodes are expected to mine/relay the version with the lower cost. However, this implies that everyone will see both versions and be able to make that choice, which could lead to conflict and only one version paying a fee. This could also expose the peer-to-peer network to a cheap DDoS attack. Although Segwit's third party malleability protection makes it not an issue for dependent contracts if transactions are mauled, there are still reasons for senders to not make their transactions extensible in size or other resources.


Updated on: 2023-05-19T23:44:41.230360+00:00