From louiswillcock at gmail.com Fri Nov 3 22:18:23 2017 From: louiswillcock at gmail.com (Louis Willcock) Date: Fri, 3 Nov 2017 15:18:23 -0700 Subject: [Lightning-dev] Lightning-dev Digest, Vol 27, Issue 2 In-Reply-To: References: Message-ID: Rusty, your comments on BIP70 have me interested. Do you have a belief as to why it is not used? And I assume you are largely referring to the BIP 70-72 collection? Is it a case of App devs just not incorporating the functionality in? On Fri, Nov 3, 2017 at 5:00 AM, < lightning-dev-request at lists.linuxfoundation.org> wrote: > Send Lightning-dev mailing list submissions to > lightning-dev at lists.linuxfoundation.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev > or, via email, send a message with subject or body 'help' to > lightning-dev-request at lists.linuxfoundation.org > > You can reach the person managing the list at > lightning-dev-owner at lists.linuxfoundation.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Lightning-dev digest..." > > > Today's Topics: > > 1. Re: Question: Invoice (Rusty Russell) > 2. Re: Question: Invoice (Johan Tor?s Halseth) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 03 Nov 2017 11:50:19 +1030 > From: Rusty Russell > To: Cezary Dziemian , > lightning-dev at lists.linuxfoundation.org > Subject: Re: [Lightning-dev] Question: Invoice > Message-ID: <87bmkknooc.fsf at rustcorp.com.au> > Content-Type: text/plain > > Hi Cezary, > > This is indeed the right place for such questions at the moment. > > Cezary Dziemian writes: > > 1. After LN starts, some group of users will use it, other not. If for > > example, I would like to receive payment for coffee from some user, I > don't > > know if user uses LN or not. So, when someone buy something from me, do I > > need to ask him what kind of payment he would like to use (LN or > on-chain)? > > The best would be, if I show him some qr code contains both public > address > > and LN invoice and his wallet could choose how to pay. But this cannot be > > done this way, right? > > Yes, the transition is kind of painful. You can use a BOLT 11 QR code, > which can contain a fallback address, but that still requires their app > understand BOLT11 enough to extract it. > > If they understand the BIP70 payment protocol, it could include an > alternate payment mechanism, but it seems nobody actually uses this. > > > 2. Lets imagine, that someone send me invoice. I send payment and someone > > in the middle doesn't cooperate fast. My payment is waiting and until > time > > lock period lapse I don't know if my payment will be processed or not. > What > > to do then? > > This is the worst case, yes. It's actually two cases: one where the > payment has failed, and one where it has succeeded and you don't know > yet. > > If it's succeeded you'll get your goods (the recipient sees nothing > wrong), so you don't care that you have to wait for the money to be > deducted. > > If it hasn't, it's almost certainly going to fail, and you can either > wait or try again with a new invoice (your wallet won't let to pay the > same one twice unless it's definitely failed). For 1.1 you'd be able to > reuse the same invoice safely, as long as the merchant was honest if it > received two payments and rejects the second. > > > 3. Am I right that this decremental time lock is strongly related with > > block confirmation time? If there would be currency that have very fast > > confirmation time (like 5 seconds) then time lock period could be short > > what can potentially solve problem described in paragraph 2? > > Somewhat, but not that low, because you still need a margin to turn > around payments. In practice, if payments are so unreliable that you > have to worry about this case, then something's horribly wrong! > > Cheers, > Rusty. > > > ------------------------------ > > Message: 2 > Date: Fri, 03 Nov 2017 12:25:46 +0100 > From: Johan Tor?s Halseth > To: Rusty Russell > Cc: lightning-dev at lists.linuxfoundation.org > Subject: Re: [Lightning-dev] Question: Invoice > Message-ID: > Content-Type: text/plain; charset="utf-8" > > I think this might have been discussed somewhere, sometime before: > couldn?t we add an lightning parameter to the bitcoin: url, making the QR > codes backwards compatible? > - Johan > > On Fri, Nov 3, 2017 at 2:20, Rusty Russell wrote: > Hi Cezary, > > This is indeed the right place for such questions at the moment. > > Cezary Dziemian writes: > > 1. After LN starts, some group of users will use it, other not. If for > > example, I would like to receive payment for coffee from some user, I > don't > > know if user uses LN or not. So, when someone buy something from me, do I > > need to ask him what kind of payment he would like to use (LN or > on-chain)? > > The best would be, if I show him some qr code contains both public > address > > and LN invoice and his wallet could choose how to pay. But this cannot be > > done this way, right? > > Yes, the transition is kind of painful. You can use a BOLT 11 QR code, > which can contain a fallback address, but that still requires their app > understand BOLT11 enough to extract it. > > If they understand the BIP70 payment protocol, it could include an > alternate payment mechanism, but it seems nobody actually uses this. > > > 2. Lets imagine, that someone send me invoice. I send payment and someone > > in the middle doesn't cooperate fast. My payment is waiting and until > time > > lock period lapse I don't know if my payment will be processed or not. > What > > to do then? > > This is the worst case, yes. It's actually two cases: one where the > payment has failed, and one where it has succeeded and you don't know > yet. > > If it's succeeded you'll get your goods (the recipient sees nothing > wrong), so you don't care that you have to wait for the money to be > deducted. > > If it hasn't, it's almost certainly going to fail, and you can either > wait or try again with a new invoice (your wallet won't let to pay the > same one twice unless it's definitely failed). For 1.1 you'd be able to > reuse the same invoice safely, as long as the merchant was honest if it > received two payments and rejects the second. > > > 3. Am I right that this decremental time lock is strongly related with > > block confirmation time? If there would be currency that have very fast > > confirmation time (like 5 seconds) then time lock period could be short > > what can potentially solve problem described in paragraph 2? > > Somewhat, but not that low, because you still need a margin to turn > around payments. In practice, if payments are so unreliable that you > have to worry about this case, then something's horribly wrong! > > Cheers, > Rusty. > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20171103/381678d3/attachment-0001.html> > > ------------------------------ > > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev > > > End of Lightning-dev Digest, Vol 27, Issue 2 > ******************************************** > -- Louis Willcock Software Developer Phone: 0422984471 -------------- next part -------------- An HTML attachment was scrubbed... URL: