Eltoo

A proposed Lightning update mechanism where any later state can replace an earlier one, simplifying old-state penalties.

Basically

Eltoo is a proposed update for Lightning Network payment channels. It uses SIGHASH_ANYPREVOUT so the latest version of a channel can replace any older version, making updates simpler to manage.

Key Takeaways

  • Eltoo lets any later channel state directly replace any earlier state. Current channels maintain every historical state with penalty transactions, while eltoo removes the need for complex revocation mechanisms.
  • Eltoo requires a SIGHASH_ANYPREVOUT soft fork. This new Bitcoin signature hash type lets transactions rebind to different inputs with the same script, but it is not currently available on mainnet.
  • Current Lightning channels create toxic old states that can cause fund loss if broadcast. Eltoo removes this risk and makes channel backups trivial because only the latest state matters.

What Is Eltoo?

Eltoo (pronounced "L2") is a proposed upgrade to Lightning Network payment channels that changes how channel state updates work. Christian Decker, Rusty Russell, and Olaoluwa Osuntokun proposed it in 2018. Eltoo introduces symmetric state channels where either party can publish any state, and later states automatically supersede earlier ones.

The name "eltoo" is a phonetic play on "L2" (Layer 2), reflecting its role as an improved foundation for Bitcoin's second layer. The proposal has more recently also been called "LN-Symmetry" to emphasise its symmetric nature, where both channel parties have identical capabilities and transaction structures.

Current Lightning channels use a penalty-based system called LN-Penalty, while eltoo uses a simple rule: newer states can always replace older states on-chain. Eltoo gains this simpler design at the cost of requiring changes to Bitcoin itself, specifically a new signature hash type called SIGHASH_ANYPREVOUT.

The Problem Eltoo Solves

Current Lightning Network channels use the LN-Penalty mechanism. Both parties create new commitment transactions and exchange revocation keys for the old state when you update a channel state, for example after sending or receiving a payment. The other party can use the revocation key to claim all channel funds as punishment if someone cheats by broadcasting an old, favourable state.

The penalty system works. It also creates several problems:

Toxic Waste

Every revoked channel state becomes "toxic waste". Your counterparty can take all channel funds if you accidentally broadcast an old state, perhaps from a corrupted backup, even if you had no malicious intent. Old states are dangerous to store and lose track of, and they create asymmetric risk based on who has more funds in the channel.

Complex State Management

Nodes must store every historical state and its associated revocation data for the lifetime of the channel. Active channels with thousands of updates create significant storage and management overhead. Losing this data can result in catastrophic fund loss.

Backup Fragility

Channel backups in the current system are inherently risky. A backup made at state N becomes dangerous once the channel advances to state N+1. Restoring from an old backup could accidentally broadcast a revoked state, triggering a penalty and total fund loss.

Watchtower Complexity

Watchtowers that monitor for cheating attempts must store data for every possible old state. Channels with many updates create substantial data requirements and make watchtower services more expensive to operate.

How Eltoo Works

Eltoo replaces the penalty mechanism with a simpler "latest state wins" approach. The update process works as follows:

An old-state broadcast leads to a straightforward process. The steps are:

Eltoo imposes no punishment. The party who broadcast the old state simply loses the opportunity to settle with that state, without losing any funds beyond what they legitimately owed in the correct state.

SIGHASH_ANYPREVOUT Explained

Eltoo depends on SIGHASH_ANYPREVOUT (BIP-118), a proposed new signature hash type for Bitcoin transactions. Normal Bitcoin signature rules show why eltoo needs this change.

Normal Signatures

A Bitcoin transaction signature commits to specific inputs, including the transaction ID (txid) of the output being spent. The signature is valid only for spending that specific output. You cannot reuse it for a different output, even when the script conditions are identical.

ANYPREVOUT Signatures

SIGHASH_ANYPREVOUT changes this rule. A signature using ANYPREVOUT commits to the spending conditions, or script, but not to the specific txid of the input, so the same signature can spend any output with matching script conditions.

Eltoo needs this capability. Update transaction N+1 must be able to spend either output:

All these outputs use the same script structure, so one presigned transaction can spend any of them with ANYPREVOUT. Without ANYPREVOUT, you would need separate signatures for every possible input, which would make the system impractical.

No Toxic Waste

Old states are not dangerous in eltoo. Broadcasting an outdated state does not result in fund loss because the current state simply replaces it. Eltoo greatly reduces operational risk and makes channel management less stressful.

Simple Backups

Backups become trivial because any state can be safely broadcast. You only need to store your latest state. If you restore from an older backup, you only lose the opportunity to claim the latest state, not all your funds.

Efficient Watchtowers

Watchtowers only need to store the latest state for each channel, not every historical state. Storage requirements fall from O(n) to O(1), where n is the number of state updates, making watchtower services much more scalable.

Multiparty Channels

Eltoo naturally extends to channels with more than two participants. The penalty system becomes exponentially complex with more parties, but eltoo's "latest wins" rule works the same regardless of participant count. Eltoo therefore enables channel factories and other multi-party constructions.

Symmetric Roles

Both parties in an eltoo channel have identical transaction structures and capabilities. The symmetry simplifies implementation, reduces code complexity, and makes the protocol easier to reason about and audit.

Current Status and Timeline

Eltoo cannot be deployed today because SIGHASH_ANYPREVOUT requires a Bitcoin soft fork. The BIP-118 proposal has been under discussion since 2017, with various revisions and refinements.

BIP-118 Status

BIP-118 specifies two new signature hash types: SIGHASH_ANYPREVOUT and SIGHASH_ANYPREVOUTANYSCRIPT. The proposal is well-specified and has working implementations, but it has not achieved the consensus needed for activation. The key considerations include:

Alternative Proposals

Some researchers have explored ways to achieve eltoo-like benefits without ANYPREVOUT, using existing opcodes or other proposed upgrades like OP_CHECKTEMPLATEVERIFY (CTV). These alternatives generally involve trade-offs in flexibility or efficiency compared with the full eltoo design.

Requires Soft Fork

Eltoo cannot be deployed without changes to Bitcoin, which is its fundamental limitation. Soft forks are intentionally difficult to activate and require broad community consensus. SIGHASH_ANYPREVOUT has no certain activation timeline.

No Punishment for Cheating

Eltoo cheaters face no financial penalty, unlike LN-Penalty, where cheaters lose their entire channel balance. They simply fail to settle with the old state. Some argue that this reduces the disincentive to attempt fraud, though the practical attack benefit is minimal.

On-Chain Footprint

Correcting a broadcast of an old state requires an additional on-chain transaction. High-fee environments could make this correction cost significant. LN-Penalty settles in one transaction, the penalty, while eltoo might require multiple transactions if states are contested.

New Protocol Complexity

Eltoo simplifies state management, but adopting it requires substantial changes to Lightning implementations. Developers would need to rewrite the entire channel update logic, transaction structure, and cooperative close procedures. The changes represent a significant engineering investment.

0

← All 1876 glossary terms