David A. Harding [ARCHIVE] on Nostr: š
Original date posted:2023-01-03 šļø Summary of this message: A proposal for ...
š
Original date posted:2023-01-03
šļø Summary of this message: A proposal for a contract protocol between two parties, Alice and Bob, with two branches: on-chain/channel and timelock, for instant LN payments.
š Original message:
On 2023-01-03 03:57, ZmnSCPxj via Lightning-dev wrote:
> The contract has two participants: Alice the funds owner, and
> Bob its potential swap partner.
> [...]
> The contract has only 2 branches:
>
> * Onchain/channel branch: Alice and Bob.
> * Timelock branch: Alice plus a relative timelock (`OP_CSV`)
> measurable in weeks.
Good morning Jesse and ZmnSCPxj,
Is the following an accurate summary of the proposal's benefits and
costs? At some point x blocks before Alice expects she might want to
spend her funds on LN (but also wants the option to quickly spend her
funds onchain), she enters into a contract protocol with Bob. At any
time, with Bob's cooperation, she can send an onchain transaction. Or,
after the contract protocol deposit transaction gets x confirmations,
Alice can instantly fund a fully initialized LN channel with Bob's
cooperation, from which she can immediately send LN payments.
If the above is accurate, how does that compare to splice outs? For
example: at some point x blocks before Alice expects she might want to
spend her funds on LN (but also wants the option to quickly spend her
funds onchain), she enters into a contract protocol with Bob by opening
an LN channel. At any time, with Bob's cooperation, she can send an
onchain transaction using a splice out. Or, after the contract protocol
(LN) deposit transaction gets x confirmations, Alice now has a funded
fully initialized LN channel with Bob's participation as counterparty,
from which she can immediately send LN payments.
If the value for x blocks is the same in both cases, those two scenarios
look very similar to me.
The only advantages I see of your proposal are:
1. It allows Alice's LN wallet to remain offline indefinitely---but only
if Alice doesn't have any other funds in open channels.
2. It's easier to implement than splice-outs (I would guess)---but it
also only provides the benefits of sending onchain payments at the time
before the first LN transaction is made, whereas actual splice out can
be used any time in a channel's lifetime to immediately send onchain
payments.
Am I missing something?
-Dave
Published at
2023-06-09 13:12:25Event JSON
{
"id": "b46ff32f977abfcdedb8d7779a4753dc2f1346eadc285586afec8b78cb52cdeb",
"pubkey": "d3574a24208f4e3d0821bb4a69a0c3ae842043d444fa5c4a8c49c369918a6fb2",
"created_at": 1686316345,
"kind": 1,
"tags": [
[
"e",
"3be914e57f30cb1ca11948ee6880cb934d9f0f4119bdc9f8dec8b3a43f682538",
"",
"root"
],
[
"e",
"21175cb9c00a5a7361af7839d36f3bf271091fcbb2878a50a45b6fad74a18bb6",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "š
Original date posted:2023-01-03\nšļø Summary of this message: A proposal for a contract protocol between two parties, Alice and Bob, with two branches: on-chain/channel and timelock, for instant LN payments.\nš Original message:\nOn 2023-01-03 03:57, ZmnSCPxj via Lightning-dev wrote:\n\u003e The contract has two participants: Alice the funds owner, and\n\u003e Bob its potential swap partner.\n\u003e [...]\n\u003e The contract has only 2 branches:\n\u003e \n\u003e * Onchain/channel branch: Alice and Bob.\n\u003e * Timelock branch: Alice plus a relative timelock (`OP_CSV`)\n\u003e measurable in weeks.\n\nGood morning Jesse and ZmnSCPxj,\n\nIs the following an accurate summary of the proposal's benefits and \ncosts? At some point x blocks before Alice expects she might want to \nspend her funds on LN (but also wants the option to quickly spend her \nfunds onchain), she enters into a contract protocol with Bob. At any \ntime, with Bob's cooperation, she can send an onchain transaction. Or, \nafter the contract protocol deposit transaction gets x confirmations, \nAlice can instantly fund a fully initialized LN channel with Bob's \ncooperation, from which she can immediately send LN payments.\n\nIf the above is accurate, how does that compare to splice outs? For \nexample: at some point x blocks before Alice expects she might want to \nspend her funds on LN (but also wants the option to quickly spend her \nfunds onchain), she enters into a contract protocol with Bob by opening \nan LN channel. At any time, with Bob's cooperation, she can send an \nonchain transaction using a splice out. Or, after the contract protocol \n(LN) deposit transaction gets x confirmations, Alice now has a funded \nfully initialized LN channel with Bob's participation as counterparty, \nfrom which she can immediately send LN payments.\n\nIf the value for x blocks is the same in both cases, those two scenarios \nlook very similar to me.\n\nThe only advantages I see of your proposal are:\n\n1. It allows Alice's LN wallet to remain offline indefinitely---but only \nif Alice doesn't have any other funds in open channels.\n2. It's easier to implement than splice-outs (I would guess)---but it \nalso only provides the benefits of sending onchain payments at the time \nbefore the first LN transaction is made, whereas actual splice out can \nbe used any time in a channel's lifetime to immediately send onchain \npayments.\n\nAm I missing something?\n\n-Dave",
"sig": "a565db47c6cbe2ad3d4175d21ade24bf9dd92551c2e2f852f19c59aa366d49092db18aaec298aa2e52410963a1d27d45e30230cc0489115a2286b05c50db31af"
}