LNGate: powering IoT with next generation lightning micro-payments using threshold cryptography

Bitcoin has emerged as a revolutionary payment system with its decentralized ledger concept however it has significant problems such as high transaction fees and long confirmation times. Lightning Network (LN), which was introduced much later, solves most of these problems with an innovative concept called off-chain payments. With this advancement, Bitcoin has become an attractive venue to perform micro-payments which can also be adopted in many IoT applications (e.g. toll payments). Nevertheless, it is not feasible to host LN and Bitcoin on IoT devices due to the storage, memory, and processing requirements. Therefore, in this paper, we propose an efficient and secure protocol that enables an IoT device to use LN through an untrusted gateway node. The gateway hosts LN and Bitcoin nodes and can open & close LN channels, send LN payments on behalf of the IoT device. This delegation approach is powered by a (2,2)-threshold scheme that requires the IoT device and the LN gateway to jointly perform all LN operations which in turn secures both parties' funds. Specifically, we propose to thresholdize LN's Bitcoin public and private keys as well as its commitment points. With these and several other protocol level changes, IoT device is protected against revoked state broadcast, collusion, and ransom attacks. We implemented the proposed protocol by changing LN's source code and thoroughly evaluated its performance using a Raspberry Pi. Our evaluation results show that computational and communication delays associated with the protocol are negligible. To the best of our knowledge, this is the first work that implemented threshold cryptography in LN.

[1]  Daniel Davis Wood,et al.  ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER , 2014 .

[2]  Anamika Chauhan,et al.  Blockchain and Scalability , 2018, 2018 IEEE International Conference on Software Quality, Reliability and Security Companion (QRS-C).

[3]  Sylvain Kubler,et al.  Enhanced Lightning Network (off-chain)-based micropayment in IoT ecosystems , 2020, Future Gener. Comput. Syst..

[4]  Massimo Bartoletti,et al.  SoK: unraveling Bitcoin smart contracts , 2018, IACR Cryptol. ePrint Arch..

[5]  Thomas Watteyne,et al.  Understanding the Limits of LoRaWAN , 2016, IEEE Communications Magazine.

[6]  A. Selcuk Uluagac,et al.  A Survey on Ransomware: Evolution, Taxonomy, and Defense Solutions , 2021, ArXiv.

[7]  Adi Shamir,et al.  How to share a secret , 1979, CACM.

[8]  Kemal Akkaya,et al.  Cryptocurrency Solutions to Enable Micropayments in Consumer IoT , 2021, IEEE Consumer Electronics Magazine.

[9]  Yehuda Lindell,et al.  Fast Secure Multiparty ECDSA with Practical Distributed Key Generation and Applications to Cryptocurrency Custody , 2018, CCS.

[10]  Yvo Desmedt,et al.  Threshold cryptography , 1994, Eur. Trans. Telecommun..

[11]  Tilman Wolf,et al.  A Lightweight Payment Verification Protocol for Blockchain Transactions on IoT Devices , 2019, 2019 International Conference on Computing, Networking and Communications (ICNC).

[12]  Akira Matsumoto,et al.  Performance evaluation of IEEE 802.11n devices for vehicular networks , 2009, 2009 IEEE 34th Conference on Local Computer Networks.

[13]  Sharon Goldberg,et al.  Certifying RSA Public Keys with an Efficient NIZK , 2018, IACR Cryptol. ePrint Arch..

[14]  Christian Decker,et al.  A Fast and Scalable Payment Network with Bitcoin Duplex Micropayment Channels , 2015, SSS.

[15]  Satoshi Nakamoto Bitcoin : A Peer-to-Peer Electronic Cash System , 2009 .

[16]  Marimuthu Palaniswami,et al.  Internet of Things (IoT): A vision, architectural elements, and future directions , 2012, Future Gener. Comput. Syst..

[17]  A. Selcuk Uluagac,et al.  LNBot: A Covert Hybrid Botnet on Bitcoin Lightning Network , 2020, ESORICS.

[18]  Yehuda Lindell,et al.  Fast Secure Two-Party ECDSA Signing , 2017, Journal of Cryptology.

[19]  Kemal Akkaya,et al.  Enabling Micro-payments on IoT Devices using Bitcoin Lightning Network , 2021, 2021 IEEE International Conference on Blockchain and Cryptocurrency (ICBC).

[20]  Dong Jin,et al.  Bitcoin Payment-Channels for Resource Limited IoT Devices , 2018, COINS.

[21]  Zlatko Bundalo,et al.  Vehicle toll payment system based on Internet of Things concept , 2016, 2016 5th Mediterranean Conference on Embedded Computing (MECO).