Blockstream Successfully Tests End-to-End Lightning Micropayment Transaction



Summary:

A blog post by Rusty Russell, a developer at Blockstream, described their recent use of a v0.5 C lightning prototype that demonstrated a completed transaction which included invoicing, multi-hop payment, and item delivery. The test was set up using a web server to create invoices for test bitcoin payments over the lightning network. Christian Decker, another Blockstream developer, purchased an ASCII cat picture using 0.01 test bitcoin to open a lightning channel with the server. After a single confirmation, he paid the invoice with a 100 satoshi transfer and accessed the link to find his cat picture. He discovered it was an ASCII picture with two cats and promptly opened another node, connected to the first node, and bought a second copy of the cat picture by routing through the previous node. The 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. Blockstream developers 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 they still want to smooth and some documentation that they'd like to write before the 0.5 release. They want to create libraries to allow web developers to play with constructing their own cat picture stores. The low production value fits with the ASCII art.


Updated on: 2023-05-24T00:33:51.374049+00:00