18 November 2017
visit www.solutions.lexisnexis.com

Blockstream completes end-to-end test of lightning micropayment

07 October 2016  |  5229 views  |  0 Source: Blockstream

This story of feline acquisition begins with the demonstration of v0.5 of the C lightning prototype, a lightning-fast micropayment system we've been working on here at Blockstream.

To test the impending prototype, we set up a web server to create invoices for test bitcoin payments over the lightning network, and in return to offer a cat, or at least an ASCII cat picture.

Dr. Christian Decker, another Blockstream developer working with me, purchased the feline picture using 0.01 test bitcoin to open a lightning channel with the server, which was mined in test block 928335. After a single confirmation, he paid the invoice with a 100 satoshi transfer. Afterward, he accessed the link to find his cat picture. He discovered it was an ASCII picture, with a nice bonus. Two cats! Christian promptly opened another node, connected to the first node, and bought a second copy of the cat picture by routing through the previous node.
What Happened Behind The Scenes?

A Digital Ocean server runs Apache, bitcoind, and lightningd. When accessed, a CGI script calls 'lightning-cli invoice 100000' to create an invoice, which is presented to the user. The user clicks through a unique link, and if 'lightning-cli listinvoice' indicates that the invoice was paid, the script presents the picture.

This is the first end-to-end test of a lightning micropayment network, including invoicing, multi-hop payment, and item delivery. It is very different from Acinq's recent simulation of a lightning routing algorithm called Flare. Their work shows how, by way of simple analogy, one can create a streetmap to get from A to B in an efficient way, while the test we've demonstrated here with v0.5 of the C lightning prototype has us actually walking that path on the street.
What's Next?

We found a few bugs in corner cases and hit some known FIXMEs, but also made lightningd more robust against misconfiguration. There are a few rough edges that we'd still like to smooth and some documentation that we'd like to write before the 0.5 release. Then, we want to create libraries to allow web developers to play with constructing their own cat picture stores!

Comments: (0)

Comment on this story (membership required)

Related blogs

Create a blog about this story (membership required)
visit https://www.niceactimize.comvisit www.solutions.lexisnexis.comvisit www.aciworldwide.com

Top topics

Most viewed Most shared
Singapore central bank open sources blockchain prototypesSingapore central bank open sources blockc...
11461 views comments | 15 tweets | 28 linkedin
Digital receipt startup Flux scores game-changing deal with BarclaysDigital receipt startup Flux scores game-c...
9698 views comments | 20 tweets | 36 linkedin
Ripple boss predicts central bank adoption of blockchainRipple boss predicts central bank adoption...
8921 views comments | 16 tweets | 18 linkedin
AmEx partners Ripple and Santander for blockchain-enabled cross-border paymentsAmEx partners Ripple and Santander for blo...
8766 views comments | 12 tweets | 37 linkedin
UK cryptocurrency exchange startup launches debit card for spending bitcoinUK cryptocurrency exchange startup launche...
7547 views comments | 26 tweets | 37 linkedin

Featured job

Competitive package
New York City, NY - USA

Find your next job