Imagine a way to expand bitcoin payments to millions per second. Now, imagine a clunky, command-line interface.
Thatâs the extent of the divide between the vision enabled by bitcoinâs best-yet scaling solution, the lightning network, and the current state of its design. But while thatâs daunting, developers are moving ahead on designs to make the payment system easier to use, with one recently submitting a proposal for connecting lightning with a payment technology that could make it feel as futuristic as itâs touted.
That payment technology, near-field communication, or NFC, would allow a user to pay for an item just by holding their smartphone an inch away from the device itâs paying.
Not a new idea in bitcoin or the payments world at large, NFC-based payments have caught on throughout Asia and Europe â not only on smartphones, but also through chips embedded in payment cards. And while the U.S. might be lagging behind in NFC adoption, bitcoinâs early adopters might just be the right target audience.
As such, the proposal, submitted by developer Igor Cota, looks to standardize a way to connect lightning with NFC.
Invoking the name of his lightning wallet that uses NFC, Presto, Cota told CoinDesk:
âI want the payments to be instant just like with the contactless cards we have here in Europe. A user would simply tap on the payment terminal and presto!â
Further, Cota imagines turning any computer into a lightning point-of-sale terminal through the use of a $29 USB attachment, a route that has proven successful in his early tests.
Given the success, Cotaâs proposal is about standardizing what heâs created, adding it to the many other standard rules that describe how each lightning software implementation should operate.
Many bitcoin payments implementations tend to use QR codes â those pixelated-looking black-and-white squares that encode data that can then be scanned and consumed by smartphones. And while Presto supports QR codes alongside NFC, he believes the latter provides a much better experience.
QR codes not only can be a bit finicky, but they also can become âunwieldy,â Cota said, especially when more information is added to them. In this way, merchants wonât be able to add much information such as itemized receipts and coupons to QR codes, he said.
NFC, though, doesnât have this hurdle.
âIâd like to see a system where the payment terminal sends a nice HTML receipt for the customer â that receipt has, say, a table list of your grocery shopping with subtotal, taxes, grand-total, perhaps a shop logo, some loyalty code or a coupon for future use,â he said.
In Cotaâs mind, this would give consumers a more detailed record of their spending habits, empowering them to take even more control of their finances.
âImagine a wallet that can tell you how much youâve spent on broccoli last month?â Cota said, adding:
âWith crypto youâre always in control, but with these digital receipts you are even more so.â
But first, Cota is trying to get his NFC implementation added to the standards that lightning network developers have established in an effort to make sure all implementations are compatible with each other.
These standards are called âBOLTS,â and Cota believes NFC should be added to BOLT 11, which explains how âinvoicesâ â describing how much a person owes â should be encoded and presented to a user. Itâs a similar process to that of the credit card reader at Starbucks showing you that you owe $4.50 for a mocha latte.
For now, BOLT 11 only describes a standard for QR codes.
Already, Cota has come up with a rough standard, putting together a Multipurpose Internet Mail Extensions (MIME) type, which is a format for sending data; an NFC application ID, which indicates the payment method is lightning; and a âvery simple protocol to forward socket data.â
Though these pieces werenât so hard to come up with, Cota said he thinks itâs important to write up a standard, whereby all NFC-enabled point-of-sale devices can accept any NFC-based lightning payment, now to be ahead of the game should NFC-based lightning payments take off.
âFor the sake of interoperability, it would be great if we agreed on some standards,â he explained.
And already, most of the public technical feedback has been positive, with Lightning developers ZmnSCPxj and Corné Plooy responding favorably to the proposal on the mailing list.
However, Bitrefill lightning developer Justin Camarena was a bit wishy-washy, telling CoinDesk:
âItâs an obvious way to pay in the future but it seems weâre a bit too early as there are no hardware point-of-sales offering lightning support.â
Still, Cota is plugging away on the next steps to move the project forward.
âAs you can see the [Presto user-interface] is not really there yet but Iâm working on it,â he said, adding, âWhat Iâm working on at the moment is a protocol that makes sure the NFC payment goes through even in case the paying device is offline.â
Cota plans to submit another pull request for developers to review once this mechanism is finished.
NFC image via Igor Cota