Conventional payment systems rely on trusted parties such as banks or payment service providers. Bitcoin introduced a decentralized approach that replaces a central trusted party by a peer-to-peer network in which consensus is established over the state of a blockchain. A blockchain is a data structure that stores all transactions and is maintained without a central party. Having access to all transactions, each user can verify whether a unit of money has been spent. However, writing to the blockchain creates a performance bottleneck because the Bitcoin peers must regularly reach consensus over the state of the blockchain. Recently, payment channel networks have been proposed which are an approach that is rooted in a blockchain but allows for peer-to-peer payments without writing to the blockchain and, thus, is not limited by the same performance bottleneck. Lightning is an implementation of a payment channel network for Bitcoin that is increasingly being used. In this thesis, we explore security aspects of payment channel networks using the example of Lightning.
We focus on the Lightning protocol and develop an approach to mechanically check the security of Lightning. We focus on the layer below a payment channel network, show design options for this layer, and empirically analyze the peer-to-peer network of Bitcoin. We focus on the user side of payment channels and develop two approaches for users to involve third parties to secure their payment channels. Finally, we focus on applications using a payment channel network and develop a protocol for ticketing in public transport whose security properties are based on a payment channel network.
The security of the Lightning protocol has been investigated previously. In contrast to previous work, we aim for a machine-checked verification of the security of Lightning and lay the groundwork for such a verification: We contribute a formal specification of the security property and a formal specification of the Lightning protocol in the formal specification language TLA+. We develop a chain of abstractions from the specification of the Lightning protocol to the security property. By combining model checking and proofs to show the correctness of these abstractions, we show that the Lightning protocol fulfills the security property. While our validation relies on finite model checking, it gives sufficient confidence that Lightning fulfills the security property so that a complete machine-checked proof can be approached in future work.
A payment channel network relies on an underlying layer. We show that this underlying layer cannot only be implemented by a blockchain but could also be implemented by a network of banks or a central bank digital currency. The Lightning Network is based upon Bitcoin as a first layer. Previous work has shown that Bitcoin fulfills the requirements that the Lightning Network has for its underlying layer based on assumptions on the peer-to-peer network used by Bitcoin. Empirically, it can be seen that these assumptions are met by the current peer-to-peer network of Bitcoin, however, little is known about the peer-to-peer network itself. In an empirical part of this thesis, we collect and analyze evidence on previously unknown metrics about the peer-to-peer network such as the number of unreachable peers in the network or the peer degree of reachable peers. We find that in April 2026, there are about $50000$ unreachable peers in the Bitcoin peer-to-peer network. We also find that more than $50$ % of the reachable peers have a peer degree that is close to the default connection limit which indicates that those peers cannot accept additional incoming connections and the network's connection capacity is close to being depleted.
The benefits of payment channel networks such as the ability to process a high number of transactions and reducing transaction latency come along with the requirement for users to regularly monitor the underlying layer for fraudulent transactions and react to such transactions within a certain time window. Approaches have been proposed that allow a user to securely transfer this task to a third party, called a watchtower. We develop two novel watchtower approaches. The first approach makes watchtower approaches economically practical by using trusted execution environments to reduce the storage requirements of a watchtower provider. The second watchtower approach removes the requirement of direct interaction between a user and a watchtower. Thereby, a user's dependence on a specific watchtower is reduced because a payment channel can be protected by any watchtower.
Finally, we show the practical relevance of payment channel networks by applying them in the context of public transport ticketing. A common setting for public transport is that there are multiple providers operating a public transport network and travelers can buy a ticket from one provider and use the ticket for routes operated by a different provider. We propose a protocol that uses a payment channel network for ticket payment. By using a payment channel network, the protocol achieves a fair exchange of a ticket and the payment for a ticket between a customer and a provider and each payment is directly sent to the provider operating the vehicles used by the customer.
In conclusion, this thesis demonstrates multifaceted security aspects of payment channel networks and contributes approaches to make payment channel networks and their usage more secure. Thereby, this thesis is a step towards future payment systems that are practical, decentralized, and scalable.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000197122 |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | xiii, 364 p. |
| Faculty | Department of Informatics (INFORMATIK) |
| Institute | Institute of Information Security and Dependability (KASTEL) |
| Exam date | Jun 29, 2026 |
| Supervisors | Hannes Hartenstein Florian Tschorsch |
| Referenced in | OpenAlex |
| HGF programme | 46.23.01 (POF IV, LK 01) Methods for Engineering Secure Systems |
| Further HGF programme | 46.23.03 (POF IV, LK 01) Engineering Security for Mobility Systems |
| Sustainable Development Goals (SDGs) |