public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Anthony Towns <aj@erisian•com.au>
To: Gavin Andresen <gavinandresen@gmail•com>
Cc: Bitcoin Dev <bitcoin-dev@lists•linuxfoundation.org>
Subject: Re: [bitcoin-dev] What Lightning Is
Date: Tue, 11 Aug 2015 05:19:01 +0800	[thread overview]
Message-ID: <20150810211901.GD12450@navy> (raw)
In-Reply-To: <20150810210240.GC12450@navy>

On Tue, Aug 11, 2015 at 05:02:40AM +0800, Anthony Towns wrote:
> On Sun, Aug 09, 2015 at 06:44:08PM -0400, Gavin Andresen via bitcoin-dev wrote:
> > I'd love to see somebody write up a higher-level description of what the
> > user experience is like, what communication happens underneath, and what
> > new pieces of infrastructure need to get built to make it all work.
> > 
> > A use-case to start with:
> > 
> > A customer starts with eleven on-chain bitcoin. They want to pay for a nice
> > cup of tea.

Sigh, kanzure on irc points out I misread this -- I read "on-channel"
not "on-chain".

In that case, I think the answer is "the customer doesn't pay for tea
via lightning". They have to setup a channel with someone first, and
to do that, they'll need a "sufficiently confirmed" anchor transaction,
and I don't think zero confirmations would be enough for that.

So:

 -1 "Oh, how did that guy pay for tea with his phone? That's cool!"
    "Scan the QR code, yeah, where the lightning logo is"
    "Cool, I'll try it tomorrow"

 0 go home, "open a lightning channel", sleep, look forward to getting
   tea tomorrow

For step 0, I guess it's:

 0.1 "Choose a hub to connect to" (could be randomly selected)
 0.2 "Choose an amount to fund the channel" (0.5 btc would be a lot)
 0.3 "Are you sure?"
 0.4 [wait briefly while counterparty signs]
 0.5 [wait for 10 confirmations?]

I don't think it's at all clear how 0.1 works in practice yet -- routing
has barely been spitballed, and without knowing how routing works, it's
hard to say who to connect to.

Hard to say how much to put in in step 0.2 too -- if it takes a while to
refresh funds in a channel (you have to do a blockchain txn eg), then
that you should put more in; if you have multiple channels for whatever
reason, maybe you can put less in each.

The "Are you sure?" might require some legal T&Cs in practice.

You need to have some realtime communication with your channel
counterpary when creating the anchor; but that should be fairly quick.
You also need to establish some random numbers and keys, but those could
be done in advance.

I think you (or your counterparty) will want to wait for a few
confirmations before your channel is actually usable. So I think it'll
take over an hour for a channel to be "open" in even the best case.

Cheers,
aj


  reply	other threads:[~2015-08-10 21:19 UTC|newest]

Thread overview: 111+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 14:25 [bitcoin-dev] Block size following technological growth Pieter Wuille
2015-07-30 15:04 ` Greg Sanders
2015-07-30 15:12 ` Jorge Timón
2015-07-30 16:23   ` Jameson Lopp
2015-07-30 16:36     ` Bryan Bishop
2015-07-30 16:43       ` Jameson Lopp
2015-07-30 16:36   ` Venzen Khaosan
2015-07-30 17:51     ` Jorge Timón
2015-07-30 18:00       ` Jorge Timón
2015-07-30 16:56   ` Gary Mulder
2015-07-30 17:13     ` Mark Friedenbach
2015-07-30 16:20 ` Gavin Andresen
2015-07-30 16:41   ` Suhas Daftuar
2015-07-30 16:48   ` Adam Back
2015-07-30 16:49   ` Pieter Wuille
2015-07-31 10:16     ` Mike Hearn
2015-07-31 11:43       ` Venzen Khaosan
2015-07-31 11:51       ` Jorge Timón
2015-07-31 12:15         ` Mike Hearn
2015-07-31 13:07           ` Marcel Jamin
2015-07-31 14:33           ` Jorge Timón
2015-07-31 14:58             ` Mike Hearn
2015-07-31 15:28               ` Venzen Khaosan
2015-07-31 20:09               ` Elliot Olds
2015-08-04 10:35               ` Jorge Timón
2015-08-04 11:04                 ` Hector Chu
2015-08-04 11:27                   ` Pieter Wuille
2015-08-04 11:34                     ` Hector Chu
2015-08-04 12:10                       ` Venzen Khaosan
2015-08-04 13:13                       ` Jorge Timón
2015-08-04 13:28                         ` Hector Chu
2015-08-04 13:42                           ` Venzen Khaosan
2015-08-04 17:59                           ` Jorge Timón
2015-08-04 13:12                     ` Gavin Andresen
2015-08-04 13:54                       ` Pieter Wuille
2015-08-04 14:30                       ` Venzen Khaosan
2015-08-04 14:43                         ` [bitcoin-dev] Fwd: " Venzen Khaosan
2015-08-04 14:45                       ` [bitcoin-dev] " Alex Morcos
2015-08-05  8:14                       ` Gareth Williams
2015-08-04 11:59                   ` Jorge Timón
2015-08-04 12:19                     ` Hector Chu
2015-08-04 13:34                       ` Venzen Khaosan
2015-08-04 13:37                       ` Jorge Timón
2015-08-05  7:29                     ` Elliot Olds
2015-08-06  1:26                       ` Jorge Timón
2015-08-06 13:40                         ` Gavin Andresen
2015-08-06 14:06                           ` Pieter Wuille
2015-08-06 14:21                             ` Gavin Andresen
2015-08-06 14:53                               ` Pieter Wuille
     [not found]                                 ` <CABsx9T0B2bZrFHxYR_QNwBmxskQx31zt=QE5BJAYjcOo7wbo3A@mail.gmail.com>
2015-08-06 15:24                                   ` [bitcoin-dev] Fwd: " Gavin Andresen
2015-08-06 15:26                                     ` Pieter Wuille
2015-08-06 18:43                                       ` Michael Naber
2015-08-06 18:52                                         ` Pieter Wuille
2015-08-07 16:06                                           ` Thomas Zander
2015-08-07 16:30                                             ` Pieter Wuille
2015-08-07 17:00                                               ` Thomas Zander
2015-08-07 17:09                                                 ` Pieter Wuille
2015-08-07 21:35                                                   ` Thomas Zander
2015-08-07 22:53                                                     ` Adam Back
2015-08-08 16:54                                                       ` Dave Scotese
2015-08-07 17:50                                               ` Gavin Andresen
2015-08-07 18:05                                                 ` Jameson Lopp
2015-08-07 18:10                                                 ` Pieter Wuille
2015-08-07 21:43                                                   ` Thomas Zander
2015-08-07 22:00                                                   ` Thomas Zander
2015-08-06 16:19                                 ` [bitcoin-dev] " Tom Harding
2015-08-06 21:56                               ` Peter Todd
2015-08-06 15:25                           ` Jorge Timón
2015-08-06 16:03                             ` Gavin Andresen
2015-08-06 16:11                               ` Mike Hearn
2015-08-06 17:15                               ` Jorge Timón
2015-08-06 19:42                                 ` Gavin Andresen
2015-08-06 20:01                                   ` Pieter Wuille
2015-08-06 21:51                                   ` Jorge Timón
2015-08-06 23:09                         ` Elliot Olds
2015-08-10 19:28                           ` Jorge Timón
2015-08-11  5:48                             ` Elliot Olds
2015-08-09 18:46                   ` [bitcoin-dev] What Lightning Is Tom Harding
2015-08-09 18:54                     ` Mark Friedenbach
2015-08-09 20:14                       ` Hector Chu
     [not found]                         ` <CAOG=w-s9KsaPwveSpgdvsVTWUDV77YY7Em7NZGyxSQMMCccYSg@mail.gmail.com>
2015-08-09 20:48                           ` Hector Chu
2015-08-10  4:48                             ` Joseph Poon
2015-08-10 17:03                         ` odinn
2015-08-10 17:14                           ` Pieter Wuille
2015-08-10 17:45                             ` odinn
2015-08-09 21:27                       ` Tom Harding
2015-08-09 21:40                         ` Chris Pacia
2015-08-09 21:45                         ` Hector Chu
2015-08-09 21:57                           ` Patrick Strateman
2015-08-09 22:03                             ` Hector Chu
2015-08-09 22:36                               ` Patrick Strateman
2015-08-10  1:52                           ` Tom Harding
2015-08-10  3:31                             ` Patrick Strateman
2015-08-09 22:06                         ` Patrick Strateman
2015-08-09 22:09                           ` Hector Chu
2015-08-09 22:27                             ` Patrick Strateman
2015-08-09 22:30                               ` Hector Chu
2015-08-09 22:44                             ` Gavin Andresen
2015-08-09 22:51                               ` Btc Drak
2015-08-10  8:27                                 ` Thomas Zander
2015-08-10  8:36                                   ` Patrick Strateman
2015-08-10  4:39                               ` Joseph Poon
2015-08-10 21:02                               ` Anthony Towns
2015-08-10 21:19                                 ` Anthony Towns [this message]
2015-08-10 21:43                                   ` Adam Back
2015-08-11  9:01                                     ` Hector Chu
2015-08-11 17:17                                       ` Simon Liu
2015-07-31 14:52           ` [bitcoin-dev] Block size following technological growth Bryan Bishop
2015-07-30 17:46   ` Jorge Timón
2015-08-02 22:35   ` Anthony Towns
2015-07-30 20:20 ` Thomas Zander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150810211901.GD12450@navy \
    --to=aj@erisian$(echo .)com.au \
    --cc=bitcoin-dev@lists$(echo .)linuxfoundation.org \
    --cc=gavinandresen@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox