RouTEE: A Secure Payment Network Routing Hub using Trusted Execution Environments

Junmo Lee, Seongjun Kim, Sang-Hyeon Park, Soo-Mook Moon

Abstract

Cryptocurrencies such as Bitcoin and Ethereum have made payment transactions possible without a trusted third party, but they have a scalability issue due to their consensus mechanisms. Payment networks have emerged to overcome this limitation by executing transactions outside of the blockchain, which is why these are referred to as off-chain transactions. In order to establish a payment channel between two users, the users lock their deposits in the blockchain, and then they can pay each other through the channel. Furthermore, payment networks support multi-hop payments that allow users to transfer their balances to other users who are connected to them via multiple channels. However, multi-hop payments are hard to be accomplished, as they are heavily dependent on routing users on a payment path from a sender to a receiver. Although routing hubs can make multi-hop payments more practical and efficient, they need a lot of collateral locked for a long period and have privacy issues in terms of payment history. We propose RouTEE, a secure payment routing hub that is fully feasible without the hub's deposit. Unlike existing payment networks, RouTEE provides high balance liquidity, and details about payments are concealed from hosts by leveraging trusted execution environments (TEEs). RouTEE is designed to make rational hosts behave honestly, by introducing a new routing fee scheme and a secure settlement method. Moreover, users do not need to monitor the blockchain in real-time or run full nodes. They can participate in RouTEE by simply verifying block headers through light clients; furthermore, having only one channel with RouTEE is sufficient to interact with other users. Our implementation demonstrates that RouTEE is highly efficient and outperforms Lightning Network that is the state-of-the-art payment network.

Introduction

While decentralized blockchains offer robust security, their low transaction throughput remains a significant barrier to mainstream adoption. Layer 2 payment networks, such as the Lightning Network, address this by facilitating off-chain transactions through payment channels. However, these networks introduce new challenges: complex routing through mesh topologies, high collateral requirements for hub nodes, privacy concerns regarding payment histories, and the burden on users to constantly monitor the blockchain for fraud.

RouTEE (Routing hub using Trusted Execution Environments) is proposed as a solution to these issues. By utilizing hardware-based security, RouTEE enables a high-performance, collateral-free routing hub that maintains user privacy and simplifies the user experience.

System Architecture

The core of RouTEE is a centralized hub that operates in a "star" topology. To mitigate the risks of centralization, RouTEE leverages Intel SGX, a Trusted Execution Environment (TEE). This technology creates a secure "enclave" where sensitive code and data are encrypted and isolated from the host machine's operating system and administrator.

Overview of the RouTEE architecture, showing the interaction between users, the host, the TEE enclave, and the blockchain.

In this architecture, the host manages the network communication and blockchain interaction, while the enclave maintains the internal ledger and executes transaction logic. This separation ensures that even a malicious host cannot access user payment details or unilaterally alter the ledger.

Protocol Design and Mechanisms

RouTEE introduces several innovations to ensure security and efficiency:

Collateral-Free Operation and Liquidity

Unlike traditional hubs that must lock up their own capital to facilitate routing, RouTEE manages user-deposited funds within the secure enclave. This "collateral-free" model significantly lowers the barrier to entry for hub operators and improves capital efficiency. Furthermore, RouTEE decouples channel creation from deposit locking, allowing users to adjust their balances without closing and reopening channels.

Secure Settlement and Incentives

To prevent a host from feeding the enclave stale or "fake" blockchain data, RouTEE employs a Spend-All-Settlement method. All user balances are settled in a single atomic batch transaction. If any part of the data provided by the host is invalid, the entire transaction is rejected by the blockchain. To further ensure honesty, routing fees are kept in a "pending" state within the enclave and only released to the host after a successful settlement.

Light Client Support via Boundary Blocks

RouTEE reduces the user burden by supporting light clients. Users do not need to run full nodes; instead, they verify "boundary blocks"—the most recent blocks relevant to their transactions—using block headers.

Key protocol operations: (a) updating boundary block numbers for light client verification and (b) transferring assets during a multi-hop payment.

As shown in the protocol steps, the enclave tracks the "Boundary" for each user, which represents the latest block header verified by that user. This allows users to securely receive funds without real-time blockchain monitoring.

Performance Evaluation

The RouTEE prototype was evaluated against the Lightning Network Daemon (LND). The results demonstrate significant performance gains:

  • Throughput: RouTEE achieves over 18,000 payments per second in a standard setup, scaling up to 180,000 payments per second with transaction batching. In contrast, LND handles approximately 360 payments per second.
  • Latency: User operations typically complete within 50ms, compared to 165ms for LND.
  • Scalability: The system maintains high performance even with thousands of concurrent users, making it suitable for large-scale retail applications.

Security and Limitations

While RouTEE provides strong privacy and security through TEEs, it is subject to the inherent risks of the underlying hardware. Side-channel attacks on Intel SGX are a known concern. Additionally, the system must address crash fault tolerance; if a host fails, the volatile memory of the enclave is lost. While state "sealing" can mitigate this, protecting against "roll-back attacks" (where a host reloads an older, more favorable state) remains a challenge that requires specialized hardware counters or further protocol refinements.

Conclusion

RouTEE represents a significant advancement in off-chain payment technology. By combining the efficiency of a centralized star topology with the security of Trusted Execution Environments, it provides a scalable, private, and collateral-free routing solution that outperforms existing decentralized mesh networks.

Summary updated

Abstract

Cryptocurrencies such as Bitcoin and Ethereum have made payment transactions possible without a trusted third party, but they have a scalability issue due to their consensus mechanisms. Payment networks have emerged to overcome this limitation by executing transactions outside of the blockchain, which is why these are referred to as off-chain transactions. In order to establish a payment channel between two users, the users lock their deposits in the blockchain, and then they can pay each other through the channel. Furthermore, payment networks support multi-hop payments that allow users to transfer their balances to other users who are connected to them via multiple channels. However, multi-hop payments are hard to be accomplished, as they are heavily dependent on routing users on a payment path from a sender to a receiver. Although routing hubs can make multi-hop payments more practical and efficient, they need a lot of collateral locked for a long period and have privacy issues in terms of payment history. We propose RouTEE, a secure payment routing hub that is fully feasible without the hub's deposit. Unlike existing payment networks, RouTEE provides high balance liquidity, and details about payments are concealed from hosts by leveraging trusted execution environments (TEEs). RouTEE is designed to make rational hosts behave honestly, by introducing a new routing fee scheme and a secure settlement method. Moreover, users do not need to monitor the blockchain in real-time or run full nodes. They can participate in RouTEE by simply verifying block headers through light clients; furthermore, having only one channel with RouTEE is sufficient to interact with other users. Our implementation demonstrates that RouTEE is highly efficient and outperforms Lightning Network that is the state-of-the-art payment network.
BibTeX
@misc{lee2020routee,
  author = {Junmo Lee and Seongjun Kim and Sang-Hyeon Park and Soo-Mook Moon},
  title = {{RouTEE: A Secure Payment Network Routing Hub using Trusted Execution Environments}},
  year = {2020},
  eprint = {2012.04254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.04254},
}
Figure