Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-04 Thread Olaoluwa Osuntokun
Hi Z, > Quick question: is the address given by the `loop in --external` command safe > for reuse? Thx for this question, I think this is the key difference I was looking for (not the aspect about confirmations, since that's no different). Since that address contains a swap hash in the script, it

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-04 Thread ZmnSCPxj via Lightning-dev
Good morning Laolu, > Hi Z, > > > * Submarine swap/peerswap: Requires confirmation before the swap service > > will send out the HTLC on Lightning. > > I might be missing something, but I don't see how this is different from a > normal on-chain to off-chain swap (calling this Loop In for shor

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread Anthony Towns
On Wed, Jan 04, 2023 at 01:06:36PM +1100, Lloyd Fournier wrote: > The advantage of using a covenant > is that the channel would not have an expiry date and therefore be a first > class citizen among channels. I think the approach here would be: * receive funds on the in-potentiam address with 80

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread Olaoluwa Osuntokun
Hi Z, > * Submarine swap/peerswap: Requires confirmation before the swap service > will send out the HTLC on Lightning. I might be missing something, but I don't see how this is different from a normal on-chain to off-chain swap (calling this Loop In for short in the remainder of the email). Giv

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread Lloyd Fournier
Dear Jesse & Z, I believe this kind of scheme is of crucial importance. I think if we're serious about bridging layer-1 and layer-2 systems transparently for users, wallets must be able to give out addresses that are covert channel openings without the sender's knowledge. e.g. I should be able to

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread Jesse Posner via Lightning-dev
Hi David, Consider a scenario where Alice receives on-chain funds while her mobile wallet app is not running. The app can't perform a splice-in until it is opened. Let's say she doesn't open the app until she is ready to buy her coffee with an LN payment, and there's not sufficient outbound liquid

Re: [Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread David A. Harding
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`) mea

[Lightning-dev] Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning

2023-01-03 Thread ZmnSCPxj via Lightning-dev
Subject: Swap-in-Potentiam: Moving Onchain Funds "Instantly" To Lightning by Jesse Posner, ZmnSCPxj Introduction Moving funds from an onchain-only address to Lightning Network is slow, especially if you desire trust-minimization (which removes solutions relying on 0-conf). Basicall