A research synthesis of the LNGate paper (WiSec ’21) shows how a resource-constrained IoT device can pay via the Lightning Network without running a full Bitcoin/LN node: keys and signatures are shared between the device and an untrusted gateway using (2,2)-threshold ECDSA. This is a strong engineering result for the classical threat model. However, threshold ECDSA is not post-quantum cryptography. If a sufficiently large fault-tolerant quantum computer were to emerge, Shor’s algorithm would attack the mathematical foundation of ECDSA itself, not just a single “unshared” key. Therefore, the main conclusion of the research is that LNGate solves the delegation and theft/collusion protection problem in the classical model, but does not address the quantum threat; a separate hybrid post-quantum migration is needed for IoT-LN.
Content
- Abstract and statement
- Methodology: Selected Test Questions
- Intrigue: Trust Divided Between Two
- What exactly did LNGate do?
- Evidence from LNGate: Delays, Costs, and Traffic
- Quantum Analysis: Where Exactly the Analogy Breaks Down
- Connections of Works: From Hannon–Jin to the Post-Quantum Agenda
- New synthesis and research program
- Limitations and uncertainty
- Conclusions
- Checklist before publication
- Sources
1. Abstract and statement
In their paper, “LNGate: Powering IoT with Next-Generation Lightning Micropayments using Threshold Cryptography,” Kurt et al. propose a protocol that allows IoT devices to use the Lightning Network (LN) through an untrusted gateway. The gateway hosts full Bitcoin and Lightning nodes, opens and closes channels, and sends payments on behalf of the device, but cannot independently control the funds: transactions are signed jointly using the (2,2)-threshold ECDSA scheme. The authors claim this is the first implementation of threshold cryptography in the Lightning Network and cite measurements on a Raspberry Pi and a cloud gateway.
This article is not a retelling of LNGate, but a research synthesis. We choose a topic at the intersection of three fields: IoT micropayments , threshold cryptography , and quantum threats to cryptography . The central question is: what exactly does LNGate prove—and what does it not prove—in the context of post-quantum security?
Testable hypotheses.
- H1 (classical model). LNGate reduces the risk of fund theft, collusion, and ransom attacks through (2,2)-threshold ECDSA and modified commitment transactions.
- H2 (quantum model). LNGate does not provide post-quantum security: the threshold ECDSA and Paillier components rely on problems vulnerable to Shor’s algorithm.
- H3 (Migration). For IoT-LN, the transition to post-quantum cryptography will require a hybrid design, new PQC threshold schemes, and compatibility with the Bitcoin/LN protocol; LNGate’s latency gains alone do not resolve the migration issue.
Falsification criterion H2: If threshold ECDSA were secure against a quantum adversary with access to public keys/transcripts, and if Paillier components were unaffected by quantum algorithms. Current cryptography provides no such evidence.
Level of evidence. LNGate’s measurements are experimental, but classical. The quantum component is a risk and literature analysis, not a new experiment. We clearly distinguish between “measured,” “proven in a model,” and “estimated as future risk.”
2. Methodology: Selected test questions
Seventeen general and seven specialized questions were selected from the “Quantum Technology Research Questions” constructor. These questions are not intended to be covered in a single article; below, they are transformed into a framework for the LNGate assessment.
| No. | Question | How used in the article | Where is the answer? |
|---|---|---|---|
| 1 | What problem does the technology solve and for whom? | IoT cannot run a full Bitcoin/LN node; LNGate delegates operations to a gateway. | §3–4 |
| 4 | Testable hypothesis and refuting observation? | H1–H3 and the refutation criterion. | §1 |
| 5 | Research boundaries? | One-way payments; device online only during transaction; quantum adversary not in LNGate model. | §4, §9 |
| 7 | Physical/mathematical mechanism? | (2,2)-threshold ECDSA, 2P-HD, modified commitment transactions. | §4 |
| 9 | What effects are really needed? | Not “quantumness” but threshold signing and control sharing; quantum resistance does not follow automatically. | §6 |
| 11 | Model assumptions? | The gateway is malicious, collusion is possible, the IoT gateway channel is encrypted and authenticated. | §4 |
| 13 | Original work and change of production? | LN as a second layer; LNGate replaces BOLT #2 and hsmd, but is compatible with the bridge node. | §4 |
| 18 | Connection to previous publications? | Hannon–Jin, Pouraghily–Wolf, Robert et al., previous 3-of-3 scheme Kurt et al. | §7 |
| 19 | Platform and rationale? | Raspberry Pi 3 Model B; DigitalOcean cloud droplet; c-lightning. | §5 |
| 21 | Noise, loss, drift? | In the classical implementation, network delays dominate rather than physical noise; quantum resources have not been assessed. | §5–6 |
| 25 | Formal object? | ECDSA, Paillier, 2P-HD, commitment points, HTLC. | §4, §6 |
| 29 | Depth/number of operations/runs? | ≈4 KB and 30 packets per LN operation; payment 4.12 s. | §5 |
| 31 | Error model? | Classical security model; quantum error model is not considered. | §9 |
| 37 | Classic baseline? | “No IoT case”: the gateway performs LN operations itself. | §5 |
| 38 | Are the accuracy/success/resources the same? | The signature is compatible with the original LN; the bridge node does not change its software. | §4–5 |
| 43 | Type of evidence? | Implementation + measurements; not a formal security proof. | §5, §9 |
| 46 | Reproducibility? | The code is on GitHub; however, the thresholdization commitment points are WIP and the overhead is not enabled. | §5, §9 |
| 49 | Cryptographic problem? | ECDLP for ECDSA; factorization/DCRA for Paillier; SHA-256 hashing. | §6 |
| 50 | Quantum algorithm? | Shor – for ECDLP/factorization; Grover – for symmetric primitives. | §6 |
| 51 | Resource assessments? | There are no logical/physical qubit estimates in LNGate; this is an open problem. | §6, §8 |
| 52 | What is available to an attacker? | Public keys, commitment points, protocol transcripts; the threat model needs to be expanded. | §6 |
| 54 | QKD vs PQC? | QKD does not replace Bitcoin signatures; PQC is required for signatures/protocol. | §6 |
| 55 | Bitcoin Mechanism: Signatures, Hashes, Protocol? | In LN, ECDSA signatures, commitment points, HTLC and BOLT messages are critical. | §6 |
| 56 | Migration and cost? | Hybrid approach, PQC signature sizes, compatibility, new threshold schemes. | §8 |
3. Intrigue: Trust Divided Between Two People
Let’s imagine a car on a toll road. The onboard device—a typical IoT node—needs to pay the toll instantly. It can’t store 340+ GB of blockchain and can’t constantly operate as a Lightning Node. LNGate offers a solution: the device and the gateway share a key. The gateway manages the channel, but without the device, it can’t sign the charge. The device doesn’t trust the gateway, but it’s not without control either.
This is the appealing paradox: an untrusted intermediary becomes secure because trust is divided . However, the paradox has a hidden edge. Key sharing protects against a single compromised participant, but does not change the mathematical problem underlying the signature. If an adversary solves this problem in a fundamentally different way—for example, using Shor’s quantum algorithm—the “division” ceases to be sufficient protection. This is where the research begins.
The main question of the article: can LNGate be considered a step towards secure IoT micropayments in a post-quantum world, or is it a solution to a different problem, leaving the quantum agenda open?
4. What exactly did LNGate do?
4.1. System model
The system has four main entities: an IoT device, a LN gateway, a bridge LN node, and a destination LN node. The IoT device communicates with the IoT gateway (access point) via Wi-Fi/Bluetooth/5G and reaches the LN gateway via the internet. The LN gateway hosts Bitcoin and LN nodes, as well as a threshold server. The device runs the threshold client. The bridge node is a regular LN node selected by the gateway; it is not required to change its software, as threshold operations occur only between the IoT device and the gateway, and a standard ECDSA signature is output.
The key engineering idea is that only the gateway’s LN node is modified. The rest of the network sees a compatible signature. This lowers the adoption barrier, but also means that the ECDSA quantum vulnerability remains common to the entire ecosystem.
4.2. Three-phase protocol
| Phase | What does IoT do? | What does a LN gateway do? | Threshold operation |
|---|---|---|---|
| Opening a channel | Sends an OpenChannelRequest with the channel capacity; participates in key and signature generation. | Connects to the bridge node, creates a funding transaction, and exchanges BOLT messages. | (2,2)-threshold key generation for funding_pubkey; 2P-HD for commitment point; threshold signing commitment of the bridge node. |
| Sending a payment | Sends SendPayment: amount, destination node ID. | Adds HTLC, subtracts service fee, sends update_add_htlc. | Joint signature of commitment and HTLC; 2P-HD for new commitment point. |
| Channel closure | Initiates a ChannelClosingRequest; signs the closing transaction. | Selects mutual/unilateral close; broadcasts the transaction. | (2,2)-threshold signing of the closing transaction or last commitment. |
4.3. Commitment Transaction Modifications
The authors modify the gateway’s commitment transaction so that fraud is not profitable. Output 1—the IoT balance—can only be spent by the IoT itself after the channel is closed; the bridge node cannot take it even if the gateway attempts to broadcast a revoked state. Output 4—the fees collected by the gateway—becomes conditional: if fraud is proven, it can be taken by the bridge node. This removes the incentive for the gateway to broadcast a revoked state and collude.
An important limitation. The article considers one-way payments from the IoT to the recipient. This makes some collusive schemes unprofitable, but limits their applicability. The authors explicitly address this limitation and leave bilateral payments for future work.
5. Evidence from LNGate: Delays, Costs, Traffic
The authors modified c-lightningthe module hsmdand implemented threshold signatures using a modified one gotham-city. The IoT device was a Raspberry Pi 3 Model B v1.2; the gateway was a DigitalOcean droplet (4 cores, 8 GB RAM). 802.11n Wi-Fi and a TCP socket were used; messages were encrypted with AES-256 and authenticated with HMAC.
5.1 Computational Latencies in IoT
| Operation | Time | Comment |
|---|---|---|
| AES encryption | 15 ms | Negligible |
| HMAC | < 1 ms | Negligible |
| Threshold key generation | 1.05 s | Once when opening a channel |
| Threshold signing | 153 ms | Basic Repeatable Threshold Operation |
5.2 Communication Delays: IoT vs. No IoT
| Operation | IoT case | No IoT case | Difference |
|---|---|---|---|
| IoT Request | 55 ms | — | — |
| Connecting to a bridge node | 6.22 s | 0.403 s | ≈5.8 s |
| Opening a channel | 3.86 s | 0.267 s | ≈3.6 s |
| Sending a payment | 4,120 s | 1.462 s | ≈2.7 s |
| Channel closure | 4.005 s | 0.737 s | ≈3.3 s |
| Ack | 46 ms | — | — |
The difference is primarily due to network delays in exchanging threshold messages, not computations on the Raspberry Pi. Opening/closing times do not include blockchain confirmations.
5.3. Cost and traffic
- Channel opening with (2,2)-threshold ECDSA: 222 satoshi ; one-way closing: 183 satoshi . At $54,500, this is ≈12 and ≈10 cents.
- Average forwarding fee in 10 test payments: 2 satoshi .
- The authors emphasize that fees do not increase due to the threshold ECDSA—they are the same as those of a regular LN node.
- IoT network traffic for LN operations: 3988–4032 bytes , about 30 packets per operation.
- Required bandwidth for payment in 4.12 s: ≈ 7.8 kbps – lower than even LoRa capabilities (up to 27 kbps).
5.4. Toll road scenario
At 80 mph and a 250-meter radius, a car has approximately 7 seconds to exchange a ride. A payment on LNGate takes 4.12 seconds, which is well within the time window. At a $0.75 fare and a 5% service fee, one ride costs $0.0375; 60 rides per month yield a $2.25 fee. This illustrates economic feasibility, not evidence of widespread adoption.
What’s measured and what’s not. Classic latency, cost, and traffic are measured. Not measured: quantum resources, post-quantum signatures, hybrid migration costs, and overhead thresholding commitment points (in the article, these are work-in-progress and not included in the experiments).
6. Quantum Analysis: Where Exactly the Analogy Breaks Down
Threshold cryptography and post-quantum cryptography are different. A threshold scheme distributes a secret among participants. A post-quantum scheme modifies a mathematical problem so that it cannot be effectively solved by a quantum algorithm. LNGate does the former, but not the latter.
6.1 ECDSA and Shor’s Algorithm
Bitcoin/LN signatures in LNGate are ECDSA over secp256k1. Security is based on the elliptic curve discrete logarithm problem (ECDLP). Shor’s algorithm solves the ECDLP in polynomial time on a sufficiently large fault-tolerant quantum computer. If an adversary knows the public key Q = xG , they can, in principle, recover x and sign transactions.
In (2,2)-threshold ECDSA, the public key is Q = x 1 x 2 G , and the parties exchange public deposits Q 1 = x 1 G and Q 2 = x 2 G . A quantum adversary who has recorded the transcript can potentially recover x 1 and x 2 separately. Even if they only saw Q , recovering x 1 x 2 mod q would still allow a signature. Therefore, threshold ECDSA is not post-quantum.
6.2. Paillier and factorization
The two-party ECDSA in LNGate uses Paillier encryption and zero-knowledge proofs. Paillier’s security is related to the factorization/composite residuosity problem. Shor’s algorithm factorizes large numbers in polynomial time. Therefore, this part of the protocol also requires a post-quantum replacement or a hybrid design.
6.3 Symmetrical Primitives
AES-256 and SHA-256 are not broken by Shor’s algorithm. Grover’s algorithm provides a quadratic speedup for key/preimage search: 256-bit security roughly translates into ~128-bit quantum security. This requires a revision of the parameters, but is not catastrophic. HMAC and LN hashing pose a minor quantum risk compared to ECDSA.
6.4. Summary table of quantum risks
| LNGate component | What is it based on? | Quantum threat | Consequence | Status |
|---|---|---|---|---|
| Funding/commitment ECDSA | ECDLP secp256k1 | Shor | Restoring keys/signatures; the threshold does not help | Theoretical risk; large FT QC not demonstrated |
| Paillier in 2P-ECDSA | Factorization/DCRA | Shor | The keygen/signing protocol needs to be replaced. | Theoretical risk |
| SHA-256/HMAC | Hash/PRF | Grover | ~128-bit quantum hardness for 256-bit | Manageable, but needs parameter auditing |
| AES-256 | Block cipher | Grover | ~128-bit quantum hardness | Acceptable within reasonable parameters |
| Bitcoin/LN protocol | ECDSA, scripts, BOLT | Shore + approval | You can’t just “snap in” PQC; you need to migrate the network | Engineering gap |
| QKD | Physics of Key Distribution | Not a threat, but another tool | Does not sign Bitcoin transactions | Not a replacement for PQC |
6.5 What LNGate doesn’t do
- Does not change ECDSA to post-quantum signature.
- Does not estimate the number of logical/physical qubits and quantum attack time.
- Does not consider quantum adversary in threat model.
- Does not check how PQC signatures will affect message size, latency, and bridge node compatibility.
- Does not offer Bitcoin/LN agreement migration.
This isn’t a “flaw” in the article: its focus is on classical security and efficiency. But for readers interested in quantum technologies, this is precisely where a new research question arises.
7. Connections of Works: From Hannon–Jin to the Post-Quantum Agenda
LNGate is part of a line of work on IoT micropayments. It’s useful to clearly show what each paper addresses and where the gaps remain.
| Job | Idea | Strong point | Limitation / gap | Contact LNGate |
|---|---|---|---|---|
| Hannon & Jin (2019) | LN for resource-constrained IoT via two untrusted third parties: payment gateway and watchdog. | Raises the issue of delegation and monitoring. | It suggests that the IoT could open a channel; it’s unclear how. This is precisely the problem LNGate solves. | LNGate fills the gap of channel opening and co-signing. |
| Pouraghily & Wolf (2019) | Ticket-based verification for IoT economic transactions. | Removes some of the load from the device. | Joint account details unclear; comparison with µRaiden, which is no longer in development. | LNGate chooses Bitcoin LN and a clear threat model. |
| Robert et al. (2020) | LN module for IoT marketplace. | Integration into the marketplace ecosystem. | Aimed at marketplace participants; third-party wallets raise security/privacy concerns. | LNGate does not transfer ownership of Bitcoin to a third party; the focus is on the individual device. |
| Kurt et al. (2020), 3-of-3 multisig | Changes the LN channel to 3-of-3 multisignature: IoT, gateway, bridge. | Joint control of three parties. | Requires channel structure changes; worse compatibility. | LNGate uses threshold ECDSA without changing the channel structure. |
| Neutrino | Light Bitcoin client for LN: headers and filters instead of the full blockchain. | Fewer resources than a full node. | Still needs to sync headers/filters; not for the weakest devices. | LNGate goes further: the device does not run a LN/Bitcoin node at all. |
| Post-quantum gap | None of these works solves PQC migration of LN for IoT. | — | ECDSA, Paillier, Bitcoin scripts and BOLT messages remain classic. | LNGate provides a convenient experimental base on which to pose PQC questions. |
Synthesis: LNGate is not the “final step,” but a bridge . It demonstrates that IoT micropayments can be made practical. The next bridge—the post-quantum one—has not yet been built.
8. New synthesis and research program
The comparison of LNGate and the quantum agenda yields not just one conclusion, but a program of testable questions.
8.1 The Main New Question
Is it possible to build a hybrid 2-of-2 threshold scheme for IoT-LN, in which on-chain funding remains Bitcoin-compatible, and off-chain authorization uses post-quantum signatures/threshold PQC components, keeping payment latency on the order of 4-5 s and traffic on the order of 4 KB per transaction?
8.2 What should be checked
- Cryptographic Replacement. Which PQC signature schemes are suitable for LNs: ML-DSA (FIPS 204), SLH-DSA (FIPS 205), or an ECDSA + PQC hybrid? Estimates of signature size, verification speed, and security in a malicious gateway model are needed.
- Threshold PQC. Are there practical 2-of-2 threshold schemes for the chosen PQC signature? How much more complex are they than Paillier-based 2P-ECDSA in terms of latency and bandwidth?
- Bitcoin compatibility. How will a PQC signature be included in on-chain funding/commitment if Bitcoin scripts and the network have historically used ECDSA/Schnorr? Is a hybrid period, a soft fork, a new output type, or a sidechain necessary?
- LN compatibility. BOLT messages, commitment points, revocation keys, HTLC—which fields need to be expanded? How will a bridge node with the original software verify a hybrid signature?
- IoT limitations. Will PQC signatures fit within the 7.8 kbps and 4 KB per operation budget? What happens with a 4.12 s latency?
- Threat model. We need to add a quantum adversary who records transcripts, sees public keys/commitment points, and can attack the Paillier portion.
- The Economics of Migration. Who Pays for Large Signatures and Additional Verification: IoT, Gateway, Bridge, Recipient?
8.3 Possible study design
| Stage | Action | Success metrics | Risk |
|---|---|---|---|
| 1 | Formalize the classical LNGate model and extend it with a quantum adversary. | Explicit assumptions and the criterion of refutation. | Mixing classical and quantum models. |
| 2 | Compare 2P-ECDSA and candidate 2P-PQC latency/bandwidth on Raspberry Pi. | Payment delay ≤ 5 sec; traffic ≤ 8 KB. | PQC signatures are too large. |
| 3 | Build a hybrid prototype: ECDSA for compatibility + PQC for future resilience. | The bridge node accepts the transaction; the IoT does not lose funds. | Double signature doubles the value. |
| 4 | Check the toll road scenario and the gateway-bridge collusion. | Payment is made within 7 seconds; fraud is unprofitable. | The one-way payment model is too narrow. |
| 5 | Estimate the quantum attack resources and resilience under different assumptions. | Honest intervals, not a date promise. | Speculative nature of estimates. |
9. Limitations and Uncertainty
- LNGate does not explore the quantum threat. It is a classic work; its threat model includes malicious gateways, collusion, and ransom, but not quantum adversaries.
- Threshold ECDSA is not equal to PQC. LNGate’s findings on theft protection cannot be generalized to quantum hacking protection.
- Unilateral payments. The authors limit the scenario; bilateral payments are future work. This affects the analysis of collusion.
- Thresholdization commitment points (WIP). In the experiments, the overhead of this part was not included; the resulting delays may be higher.
- There are no estimates of quantum resources. We’re not claiming that a quantum computer has “already hacked Bitcoin.” This is a theoretical vulnerability for a sufficiently large, fault-tolerant device.
- PQC migration isn’t free. Signature sizes, verification, and compatibility can change the conclusions about IoT suitability.
- QKD doesn’t solve the problem. Quantum key distribution doesn’t sign Bitcoin transactions and doesn’t replace PQC signatures.
10. Conclusions
- LNGate is a strong classical result. It shows that an IoT device can use LN through an untrusted gateway, and (2,2)-threshold ECDSA and modified commitment transactions reduce the risk of theft, collusion, and ransomware.
- The efficiency has been measured. Threshold signature is 153 ms, payment is 4.12 s, traffic is about 4 KB, bandwidth is 7.8 kbps, cost is cents. This is sufficient for a toll road scenario.
- There is no quantum security. ECDSA and Paillier are vulnerable to Shor’s algorithm; threshold key splitting does not change the mathematical problem. Symmetric primitives only require parameter revisions due to Grover’s algorithm.
- The main gap is migration. A hybrid post-quantum architecture for LN/IoT is needed: PQC signatures, PQC threshold schemes, compatibility with Bitcoin and bridge nodes, and a budget for latency and traffic.
- A new question to be tested: Is it possible to maintain the usability of LNGate (≈4–5 sec, ≈4 KB) when switching to hybrid PQC authentication? Answering this question is the next research task.
The bottom line: LNGate makes IoT micropayments practical; post-quantum cryptography should make them durable. These are two distinct victories, and the second one is yet to be achieved.
11. Pre-publication checklist
- Classical LNGate measurements are separated from quantum risk assessments.
- It is not claimed that a quantum computer has already hacked Bitcoin/LN.
- Threshold cryptography is clearly different from post-quantum cryptography.
- The restrictions stated are: one-way payments, WIP commitment points, lack of a quantum threat model.
- A comparison with the classic “no IoT case” base is provided.
- Sources separate the preprint/conference paper from NIST standards.
- The reader sees a new question, not just a retelling.
12. Sources
- Kurt A., Mercan S., Shlomovits O., Erdin E., Akkaya K. LNGate: Powering IoT with Next Generation Lightning Micropayments using Threshold Cryptography . WiSec ’21, 2021. DOI: 10.1145/3448300.3467833 . (Main analyzed file: 2105.08902v2.pdf.)
- Poon J., Dryja T. The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments . 2016. lightning.network/lightning-network-paper.pdf .
- NIST. Post-Quantum Cryptography: FIPS 203, 204, 205 approved . 13 Aug 2024. csrc.nist.gov/news/2024/postquantum-cryptography-fips-approved .
- NIST NCCoE. Migration to Post-Quantum Cryptography . nccoe.nist.gov/applied-cryptography/migration-to-pqc .
- National Quantum Initiative. quantum.gov/national-quantum-initiative .
- Hannon C., Jin D. Bitcoin Payment-Channels for Resource Limited IoT Devices . 2019.
- Pouraghily A., Wolf T. A Lightweight Payment Verification Protocol for Blockchain Transactions on IoT Devices . ICNC 2019.
- Robert J., Kubler S., Ghatpande S. Enhanced Lightning Network (off-chain)-based micropayment in IoT ecosystems . Future Generation Computer Systems, 2020.
- Kurt A., Mercan S., Erdin E., Akkaya K. Enabling Micro-payments on IoT Devices using Bitcoin Lightning Network . arXiv:2012.10576, 2020.
- Lindell Y. Fast Secure Two-Party ECDSA Signing . CRYPTO 2017; Lindell Y., Nof A. Fast Secure Multiparty ECDSA . CCS 2018.
- Zengo-X. gotham-city: Minimalist Bitcoin decentralized HD wallet using 2-party ECDSA . github.com/ZenGo-X/gotham-city .
- Blockstream. c-lightning — Lightning Network implementation in C. github.com/ElementsProject/lightning .
