BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Bitcoin payment channels

Bitcoin payment channels are arrangements in which participants lock coins into a Bitcoin transaction and exchange signed updates to their agreed payment state without broadcasting every update. The chain is needed to fund the arrangement and eventually settle or enforce it; the smaller intermediate payments can remain between participants. Several distinct channel designs existed before the Lightning Network. They differ in directionality, expiry, dispute handling and whether payments can cross multiple intermediaries. bitcoinj — working with micropayment channels · Bitcoin Wiki — payment-channel design families

This page follows early Bitcoin channel designs through their contemporary proposals and source code. A design written on a wiki, a merged software implementation and a payment demonstrated on a live network are three different kinds of evidence.

Before Lightning: a channel is not necessarily a network

Bitcoin's transaction format included sequence numbers and lock times that could support negotiations over a transaction before it became final. Early descriptions of high-frequency updating depended on transaction replacement behavior, with important practical and security limits. Later channel schemes instead used a funded shared output, prepared refund or settlement transactions, and signatures exchanged between two parties. Bitcoin Wiki — Nakamoto high-frequency transactions and channel families · Bitcoin Wiki — contracts, example 7

In the common unidirectional example, a customer opens a channel with a merchant, incrementally signs new payments to the merchant, and closes or times out the arrangement. The merchant does not gain a general-purpose channel to send payments back to the customer. A network capable of paying an unrelated recipient needs additional coordination and security rules. That distinction was being explored explicitly in 2013, two years before the first dated Lightning presentation.

The early sequence and lock-time controls did not all have their later consensus meanings. The Bitcoin 0.1.5 source checked height-based finality for transaction selection but did not yet reject non-final blocks; an October 2009 source change added timestamp interpretation and a future consensus-enforcement gate. Bitcoin timelocks traces the separate height, time and script-rule history that later made refund arrangements more dependable. Bitcoin v0.1.5 — original finality function · October 2009 change

2009–2010: revisable transactions before funded channels

Bitcoin's original client contained a different mechanism from the later two-party funded-channel model. The v0.1.5 transaction-acceptance path could replace an unconfirmed transaction with a higher-sequence version spending the same inputs. On 19 August 2010, imported SVN revision trunk@140 introduced an unconditional rejection of conflicting mempool transactions, with the comment “Disable replacement feature for now”. The exact implementation change survives in commit 05454818; later descriptions that it happened “in version 0.3.12” name the release that carried it, rather than the source-change date. Transaction replacement follows this separate relay-policy history. Original source · 19 August 2010 commit

On 17 April 2013, Mike Hearn published an explanation he attributed to an earlier private message from Satoshi Nakamoto about several participants repeatedly signing higher-sequence transaction versions and eventually broadcasting only the final result. Its public date is 2013; the date of the purported original email is not established by that post. The account documents an architectural intention, not a secure, deployed 2009–2010 channel network. The later funded-channel designs addressed different refund, enforcement and uncooperative-peer problems. Hearn's contemporary mailing-list post, 17 April 2013

The Bitcoin Wiki's revision history shows that Alex Akselrod opened a draft titled A proposal for a decentralized, peer-to-peer payment clearing network which uses Bitcoin for settlement and bitcoins as a unit of account on 2 February 2013. He expanded the text on 11 and 12 March. The surviving page has only those three recorded revisions. This is a directly preserved contemporary edit history, not a date inferred from a later retrospective. Bitcoin Wiki — dated revision history

On 12 March 2013, writing as blueadept on BitcoinTalk, Akselrod introduced his draft as a scheme for instant off-chain payments cleared through chained micropayment channels, with final settlement on Bitcoin. He explicitly credited earlier concepts by Mike Hearn, hashcoin, cjp, Meni Rosenfeld, retep and others; in a follow-up, he described his contribution as combining existing ideas, including examples from the Bitcoin Wiki's contracts page. The forum post was edited in January 2014 to add or revise later material, so its original timestamp should not be used to date every subsequently visible link. Contemporary announcement and discussion, 12 March 2013

The draft describes routing a payment from Alice through intermediary Carol to Bob when Alice and Bob have no direct channel. Its proposed two-phase commit uses a shared hash and a preimage: the receiving party reveals a secret that lets the participants complete the linked payments. It also proposes routing and reputation information derived from channel funding and settlement on Bitcoin, intermediary fees, and an explicit discussion of how regulation or concentration might shape a network of payment processors. These are properties of the proposal, not features independently verified in a deployed 2013 network. Akselrod — contemporary draft, sections on two-phase commit and routing

The resemblance to later routed, hash-conditioned Lightning payments is worth recording, but the protocols are not interchangeable. The 2013 draft depended on the channel and script assumptions available to its author, and it proposed its own routing and settlement model. No direct technical or organizational lineage from this draft to Poon and Dryja's design has been established here.

Another obstacle was Transaction malleability. Pre-signed refunds or settlement transactions could depend on the exact identifier of a funding transaction that had not yet confirmed. Under legacy rules, an alternative valid unlocking-script serialization could give that funding transaction a different txid without changing its outputs, stranding the prepared descendant's outpoint reference. BIP 66's strict signature encoding removed one class of modification, but SegWit later separated witness data from the transaction ID used by descendants. That distinction helps explain why a functioning 2013 one-way prototype was not automatically a safe, general routed network. Bitcoin Core — malleability and channel dependencies · BIP 66 — scope

June 2013: bitcoinj implements one-way channels

On 27 June 2013, Matt Corallo announced that an implementation of micropayment channels had merged into bitcoinj master. His announcement described a client/server protocol over TCP and protocol buffers, with wallet-persisted channel state and a default 24-hour refund period. In the same day's BitcoinTalk announcement, Mike Hearn credited Corallo with most of the work and acknowledged Jeremy Spilman's protocol contribution. This was a contemporaneous merge and announcement; Corallo said the code would ship in the next version, rather than claiming that a newly released client already had a broad production user base. Corallo, 27 June 2013 — first-party announcement · Hearn, 27 June 2013 — first-party announcement

The actual Git commit, 4908c241, is more specific. Authored by Corallo on 26 June and committed on 27 June 2013, it added client and server channel state machines, saved-wallet state, a network connection layer, a protocol-buffer schema, example applications and tests. Its message attributes an earlier state-machine implementation to Hearn and a change for non-standard nLockTime transactions to Spilman. Those credits come from the commit itself, rather than from later naming conventions. bitcoinj — directly dated source commit

The payment flow is visible in bitcoinj's documentation. Before broadcasting the shared funding transaction, the client obtains a signed time-locked refund, allowing it to recover its funds if the server disappears. It then sends the merchant revised signatures that allocate progressively more of the channel's value to the merchant. The merchant can publish the latest valid settlement transaction; otherwise, the client may have to wait for the refund's expiry. This is a one-way, single-recipient scheme. Its initial safety depends on signature handling, transaction IDs and the precise refund/funding ordering, rather than a vague promise that all off-chain updates are trustless. bitcoinj — first-party protocol and API documentation

The documentation says this functionality was available from bitcoinj 0.10 and describes it as experimental. The announcement, merged source and versioned documentation establish different milestones; they do not prove channel use by particular merchants or customers. bitcoinj documentation · 27 June announcement

August 2013: Akselrod's source prototype

A separate surviving repository, aakselrod/libtxchain-java, begins with an 1 August 2013 commit titled Initial commit. Its README calls the project a proof of concept for chained payment channels with two-phase commit and explicitly warns that it is suitable only for basic experimentation. It describes a local test requiring a specially modified bitcoind from Akselrod's stdpreimage branch, run in regression-test mode. The source contains payment-channel, peer and channel-group classes. Initial Git commit, 1 August 2013 · Project README · Channel-group source

The historical significance is preserved experimental code, not proof of a publicly used Bitcoin-mainnet payment network. The custom-node requirement in the README is particularly important: code that depends on a modified local Bitcoin implementation cannot automatically be treated as a ready-to-deploy protocol on the ordinary network. No successful independent reproduction of this prototype is recorded here.

2015: duplex channels and Lightning

Christian Decker and Roger Wattenhofer's paper A Fast and Scalable Payment Network with Bitcoin Duplex Micropayment Channels appeared in the proceedings of the August 2015 Symposium on Stabilization, Safety, and Security of Distributed Systems. Its proposal concerned bidirectional channels and a network of payment service providers. The published research record establishes another proposed approach to routing through channels, not a release of Poon–Dryja Lightning software. ETH Zurich — publication record · ETH Zurich — conference and publication details

Joseph Poon and Thaddeus Dryja gave a dated 23 February 2015 Lightning presentation; the paper's surviving Git history begins in July 2015. Their later design combined bidirectional, revocable channel states with conditionally routed payments, and subsequent Bitcoin upgrades and shared protocol specifications enabled independent implementations. Presentation, paper, consensus deployment, interoperability test and software beta remain different milestones. The Lightning Network article follows those records in detail.

What the records do and do not show

The 2013 BitcoinTalk discussion and Bitcoin Wiki edits prove a public routed-channel proposal. The 27 June bitcoinj commit proves a merged unidirectional-channel implementation. The 1 August Akselrod commit proves that a test-oriented chained-channel prototype was put in source control. They cannot collectively be presented as evidence that a routed Bitcoin-mainnet service was operational in 2013.

A funding output and a final spend may be visible on Bitcoin. Intermediate channel-state messages ordinarily are not. Reconstructing real use therefore requires contemporary service records, test logs, identified transactions or other artifacts beyond a design document. Conversely, the absence of numerous on-chain micropayments is not evidence that a channel was unused.

From the archivist's desk

I went looking for the mechanisms underneath Lightning and found an earlier proposal for routed payments, complete with concern for intermediaries, fees, reputation and control. The especially telling artifact is Akselrod's August 2013 README: its author left the warning beside the code. A working idea, a proof of concept and a safe public network deserved different names even then.

Open question
Recover and compare the February, 11 March and 12 March 2013 Akselrod wiki revisions, preserving exact changes in the routing and hash-preimage design.
Open question
Reproduce the August 2013 chained-channel demo using its specified stdpreimage Bitcoin build in an isolated historical test environment; do not infer mainnet compatibility from the README.
Open question
Identify publicly verifiable 2013–2015 on-chain channel funding and settlement examples and corroborating client/server records, without treating every multisignature output as a payment channel.