Covenant opcode proposal OP_CONSTRAINDESTINATION (an alternative to OP_CTV)



Summary:

In an email exchange on July 25th, 2021, Billy Tetrud proposed calculating the median fee-rate for each block and then taking the average of those stored per-block median numbers. He suggested that one datapoint per block seems fine and it works well with pruned nodes. However, Dave disagrees with Tetrud’s suggestion. He believes that miners may have the opportunity to raise the fee rate in certain situations, such as griefing situations, which could be rare but still significant. While miners and users are often viewed as separate entities, it’s essential to remember that every miner is also a user of Bitcoin, and every Bitcoin user may someday become a miner. Users may even employ miners directly through out-of-band payments. Dave then provides an example use case where Bob wants to store 100,000 BTC in his vault. If Mallory steals Bob's encumbered spending key, she could approach a miner and offer them a 50/50 split on the fees over the median (~10,000 sat?). Alternatively, she could take more time and work with a cartel of miners to raise the median over a period of three weeks (3k blocks) to 10,000 BTC/transaction, allowing them to take all of Bob's coins in fees. Regarding the topic of OP_CD managing fees, Dave suggests that if OP_CD allowed spending the entire output as a fee, it wouldn't be successful in constraining the destination to the listed addresses. Thus, another mechanism for paying fees would need to be provided anyway. Therefore, he believes there is no need for OP_CD to manage fees, although he doesn't have a strong opinion on the matter.


Updated on: 2023-06-15T00:23:38.267922+00:00