Cashtoo: Eltoo Channels on Bitcoin Cash

This is implementing eltoo payment channels (aka LN-symmetry) contract using BCH L1 smart contract capabilities (checkdatasig, native introspection, CashTokens, functions, loops) which some Bitcoiners hoped will one day replace the load-bearing building block of the Lightning Network, and which was motivation for proposals like SIGHASH_ANYPREVOUT and OP_CHECKTEMPLATEVERIFY.

What it buys over LN, concretely: one stored tuple instead of per-state revocation data, uniform reaction instead of per-state breach remedies, no toxic information, fees appended at broadcast instead of estimated at signing. What it costs: punishment becomes a liveness obligation, settlement must be pre-agreed, and griefing is one transaction fee and unpunished. The paper states both.

This demonstrates that BCH can in principle do the Lightning Network update layer better than BTC: one more feature for the “BTC wants, BCH has” category. The contract does carry multi-hop — an HTLC is just a settlement output — but each hop has to absorb another delay, so routes only go anywhere with a small one, and the routing software is unwritten.


Abstract. The Lightning Network (LN) invalidates superseded channel states by punishment: the party who broadcasts a stale state forfeits the channel balance. This requires asymmetric, per-state “toxic” data, forbids channel extension beyond two participants, and forces fee estimation at signing time. The simpler construction, eltoo, replaces punishment with supersession — any later state may respend any earlier one — but it has remained undeployed on Bitcoin (BTC) because it requires SIGHASH_ANYPREVOUT, which is still unactivated.

In this work, we present an equivalent capability on Bitcoin Cash (BCH) without any sighash change. An outpoint-free authorisation is obtained by combining OP_CHECKDATASIG over a contract-constructed message with native introspection over the spending transaction, giving floating transactions by composition rather than by a new signature flag. Channel state is held in a mutable CashToken NFT, which makes the channel address stable, the state unforgeable, and the watchtower payload a single non-toxic tuple of constant size.

The resulting construction is simpler to implement than LN, permits extension beyond two participants, removes fee estimation from the signing path, and requires no consensus change.

Keywords: Blockchain · Payment Channels · Layer 2 · Eltoo · CashTokens · Introspection · Bitcoin Cash.