Damus
Rusty Russell profile picture
Rusty Russell
@Rusty Russell
The problem with CTV is fees. When you look at most designs using CTV, they need *another* tx, and an anchor output, so they can pay fees.

What they really want is "this tx, plus an input and optional change output".

People tend to ignore fees in their protocol design. But I'm implementation they're critical, and only getting more so. Lightning has been down this path!
2011โค๏ธ27๐Ÿค™5๐Ÿš€3โค๏ธ2๐ŸŽ‰1๐Ÿ›๏ธ1
Bilthon · 64w
But aren't fees less of a burden if the utxo is shared?
Rusty Russell · 64w
There is, potentially, a cool trick which could help though! Jeremy proposed a kind of "neighbor fee" tx which would pay the fees for the immediately-preceding tx in a block (which, annoyingly, I can't find now! Anyone?). You really want this to stack (so it's probably better as a forward, rather th...
aivii · 64w
Are there any better alternatives? BTW thank you for Bolt12.
Rearden ๐Ÿฅช๐Ÿค–๐Ÿด๐Ÿ›ฉ · 64w
anchors arent so bad now that ephemeral anchor relay policy is moving forward. you just spend the anchor output with a single fee input to pull your ctv spend through.
Peter Todd · 64w
For what people mainly want CTV for it would be sufficient to commit to the number of _hashed_ outputs, and then only hash those outputs. Secondly, only commit to the input index (typically zero). That would allow additional inputs and change outputs to be added as needed. And to avoid Nยฒ hashing,...
renato · 64w
CTV?
cmd · 64w
Whenever calculating tx fees, I find it important to keep all nessecary fee logic contained within a single file, then pour a ring of salt around the file. This prevents the fee demons from escaping your calculation and crossing into the mortal realm.