Lightning Tickerplants and kdb+: Pay-per-ticker with micropayments on the Lightning network

1 May 2019 | , ,
Share on:

By Jeremy Lucid

In the latest kdb+ technical white paper we explore the Lightning network, a layer two technology designed to scale Bitcoin by enabling fast, micro payment transactions with low fees, while preserving Bitcoin’s decentralized qualities.

This paper focuses on the use case of pay-per-request applications which can monetize streaming data through a three step subscribe, pay and publish system.

To demonstrate lightning usage, we modify a standard ticker plant process to incorporate lightning functionality allowing subscribers to pay for data on a per ticker basis with instant settlement.

In particular, the paper will describe how the kdb+ qlnd library can be used to communicate with a Lightning node to create payment channels with peers, generate invoices for payment and route payments rapidly across the network. The paper will also discuss briefly how this setup can be extended to the case of multiple IoT devices exchanging data for payment.

This article builds on previous papers like Storing and Exploring the Bitcoin blockchain, which showcased how Bitcoin transaction data could be stored in a more familiar kdb+ partitioned database format. This enables custodial services, like cryptocurrency exchanges, to more easily query and monitor the funds under their control.

You can read the full article on the Kx Developer’s site here.

SUGGESTED ARTICLES

kdb+ and Bitcoin Node API

Securing digital assets – a Bitcoin full node API for kdb+

31 Oct 2018 | , , , , , , , ,

By Jeremy Lucid In this article Kx engineer Jeremy Lucid describes the qbitcoind library that he has created and shared on GitHub. The library allows individual users or applications to communicate with the Bitcoin Core full node and wallet implementation, facilitating direct bitcoin transactions. Jeremy is also the author of an earlier Kx blog on Bitcoin, Kdb+ and […]