More uses for CTV



Summary:

On August 19, 2022, James O'Beirne of Bitcoin-dev proposed that multiple parties could use SIGHASH_ALL | ANYONECANPAY to trustlessly collaborate and settle into a single CTV output. This would require interaction similar to coinjoins. The advantage of this method is that CTV is the most parsimonious way to do such a scheme, since SHA256 commitment can't be smaller.In response, Dave asked why CTV was better than presigned transactions, which have two benefits: 1) The payment from the first transaction can be sent to a smaller P2WPKH output, but this requires an extra round of communication for commit-and-reveal to prevent collision attack on the P2WPKH address, and 2) having the first transaction pay a either a P2WPKH or bech32m output and the second transaction spend from that UTXO may blend in better with other transactions, enhancing privacy. However, this advantage probably isn't compatible with SH_ALL|SH_ACP, and it would require other privacy upgrades to LN.Regarding direct-from-coinbase payouts, James suggested that instead of payout being a trust-based feature, a single OP_CTV output could pay out an arbitrary number of pool participants atomically within a single coinbase. However, the size of the coinbase outputs owed to constituent miners limits the number of participants in the pool. Dave asked about the size limitation on coinbase outputs, how it limits the number of participants in a pool, and how CTV fixes that.


Updated on: 2023-06-15T23:46:15.123024+00:00