Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2021-08-12 📝 Original message: On Tue, Aug 10, 2021 at ...
📅 Original date posted:2021-08-12
📝 Original message:
On Tue, Aug 10, 2021 at 06:37:48PM -0400, Antoine Riard via bitcoin-dev wrote:
> Secondly, the trim-to-dust evaluation doesn't correctly match the lifetime of
> the HTLC.
Right: but that just means it's not something you should determine once
for the HTLC, but something you should determine each time you update the
channel commitment -- if fee rates are at 1sat/vb, then a 10,000 sat HTLC
that's going to cost 100 sats to create the utxo and eventually claim it
might be worth committing to, but if fee rates suddenly rise to 75sat/vb,
then the combined cost of 7500 sat probably isn't worthwhile (and it
certainly isn't worthwhile if fees rise to above 100sat/vb).
That's independent of dust limits -- those only give you a fixed size
lower limit or about 305sats for p2wsh outputs.
Things become irrational before they become uneconomic as well: ie the
100vb is perhaps 40vb to create then 60vb to spend, so if you create
the utxo anyway then the 40vb is a sunk cost, and redeeming the 10k sats
might still be marginally wortwhile up until about 167sat/vb fee rate.
But note the logic there: it's an uneconomic output if fees rise above
167sat/vb, but it was already economically irrational for the two parties
to create it in the first place when fees were at or above 100sat/vb. If
you're trying to save every sat, dust limits aren't your problem. If
you're not trying to save every sat, then just add 305 sats to your
output so you avoid the dust limit.
(And the dust limit is only preventing you from creating outputs that
would be irrational if they only required a pubkey reveal and signature
to spend -- so a HTLC that requires revealing a script, two hashes,
two pubkeys, a hash preimage and two signatures with the same dust
threshold value for p2wsh of ~305sats would already be irrational at
about 2.1sat/vb and unconomic at 2.75 sat/vb).
> (From a LN viewpoint, I would say we're trying to solve a price discovery
> issue, namely the cost to write on the UTXO set, in a distributed system, where
> any deviation from the "honest" price means you trust more your LN
> counterparty)
At these amounts you're already trusting your LN counterparty to not just
close the channel unilaterally at a high fee rate time and waste your
funds in fees, vs doing a much for efficient mutual/cooperative close.
Cheers,
aj
Published at
2023-06-09 13:03:19Event JSON
{
"id": "6f4789eef3e0bcbc44312008d0227942e861080c70f95be851202109c3a657d4",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686315799,
"kind": 1,
"tags": [
[
"e",
"b41c7f5be0f6c2276459cf421fc852a8fb9e49b32919a16a29ba72db1840cfc7",
"",
"root"
],
[
"e",
"35c48ebee1f338fdd77da64cae80f43a44b3b61da6c1c30945d0a4de8f7a7a3e",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2021-08-12\n📝 Original message:\nOn Tue, Aug 10, 2021 at 06:37:48PM -0400, Antoine Riard via bitcoin-dev wrote:\n\u003e Secondly, the trim-to-dust evaluation doesn't correctly match the lifetime of\n\u003e the HTLC.\n\nRight: but that just means it's not something you should determine once\nfor the HTLC, but something you should determine each time you update the\nchannel commitment -- if fee rates are at 1sat/vb, then a 10,000 sat HTLC\nthat's going to cost 100 sats to create the utxo and eventually claim it\nmight be worth committing to, but if fee rates suddenly rise to 75sat/vb,\nthen the combined cost of 7500 sat probably isn't worthwhile (and it\ncertainly isn't worthwhile if fees rise to above 100sat/vb).\n\nThat's independent of dust limits -- those only give you a fixed size\nlower limit or about 305sats for p2wsh outputs.\n\nThings become irrational before they become uneconomic as well: ie the\n100vb is perhaps 40vb to create then 60vb to spend, so if you create\nthe utxo anyway then the 40vb is a sunk cost, and redeeming the 10k sats\nmight still be marginally wortwhile up until about 167sat/vb fee rate.\n\nBut note the logic there: it's an uneconomic output if fees rise above\n167sat/vb, but it was already economically irrational for the two parties\nto create it in the first place when fees were at or above 100sat/vb. If\nyou're trying to save every sat, dust limits aren't your problem. If\nyou're not trying to save every sat, then just add 305 sats to your\noutput so you avoid the dust limit.\n\n(And the dust limit is only preventing you from creating outputs that\nwould be irrational if they only required a pubkey reveal and signature\nto spend -- so a HTLC that requires revealing a script, two hashes,\ntwo pubkeys, a hash preimage and two signatures with the same dust\nthreshold value for p2wsh of ~305sats would already be irrational at\nabout 2.1sat/vb and unconomic at 2.75 sat/vb).\n\n\u003e (From a LN viewpoint, I would say we're trying to solve a price discovery\n\u003e issue, namely the cost to write on the UTXO set, in a distributed system, where\n\u003e any deviation from the \"honest\" price means you trust more your LN\n\u003e counterparty)\n\nAt these amounts you're already trusting your LN counterparty to not just\nclose the channel unilaterally at a high fee rate time and waste your\nfunds in fees, vs doing a much for efficient mutual/cooperative close.\n\nCheers,\naj",
"sig": "7cd06b149dc71a9735fcac4767740b31af40990dfdc5a334d6b9076b03e4d843a177872c6832b8f6505cabeba49e2d3f42ba2b2508e650c081048d26c2560b5e"
}