Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateeCash.com
Satoshi archive · Source code

Satoshi's code, line by line

8 snapshots · 179,307 lines · 35 diffs

This is the code Satoshi Nakamoto actually shipped, from the v0.1.0 archive of January 2009 to his last commit, SVN r202 on December 15th 2010. Every line has its own link, so if you want to show someone where the 21 million cap lives, or the moment he switched off OP_CAT, you can point to the exact line instead of a screenshot. Click a line number and the address bar gives you the link; add -L20 to it (like #L10-L20) to highlight a range.

Bitcoin was released under the MIT license, and each snapshot keeps its own license.txt. Wei Dai's SHA-256, the wxFormBuilder-generated UI files and other borrowed code are labeled where they appear, because they aren't Satoshi's hand. The bundled cryptopp/, json/ and translation folders of later releases aren't reproduced here (they're third-party code), and neither are images and binaries: those are in the research mirror.

Full snapshots

VersionReleasedFilesLinesNotes
v0.1.02009-01-08 · announcement3320,154The first release. Source from bitcoin-0.1.0.tgz in the research mirror (file dates 2009-01-11, packed by Hal Finney). main.cpp
v0.1.32009-01-12 · announcement3320,235Patch release. Source from bitcoin-0.1.3.rar in the research mirror (newest file dated 2009-01-12). main.cpp
v0.1.52009-02-04 · announcement3220,381Released 2009-02-04; this is the copy imported into SourceForge SVN in August 2009 (git tag v0.1.5, 2009-09-16). main.cpp
v0.2.02009-12-16 · announcement3722,677First release with a Linux build (git tag v0.2.0, commit of 2009-12-14). main.cpp
v0.3.02010-07-06 · announcement4122,205Version 0.3 (git tag v0.3.0, commit of 2010-07-04). main.cpp
v0.3.102010-08-15 · announcement3922,717The value-overflow patch release (git tag v0.3.10). main.cpp
v0.3.192010-12-13 · announcement4025,453His last tagged release, SVN r201: DoS limits, safe mode removed. main.cpp
r202 (last Satoshi commit)2010-12-154025,485SVN r202, "get external ip from irc", the last commit under s_nakamoto. main.cpp

What changed, release by release

Every release tag from the Satoshi era, including the in-between versions that don't have a full snapshot above. Line counts are added and removed lines in the hosted files.

DiffFiles+−Commit message (last commit of the release)
v0.1.0 → v0.1.31015877From the release archives
v0.1.3 → v0.1.5164282792009-09-16 · No dll's here
v0.1.5 → v0.2.0276,3514,0522009-12-14 · filter out duplicate getblocks and don't relay inv messages during initial block download -- 0.2 rc2
v0.2.0 → v0.2.2311,9333,6142010-02-17 · all builds are now with wxWidgets-2.9.0, we are now using UTF-8, added support for language translation file locale/<lan
v0.2.2 → v0.2.4105554872010-02-20 · Address Book with tabs instead of separate Your Address book, with live update of default address in main window, New...
v0.2.4 → v0.2.58189832010-02-21 · transaction filter tabs instead of view->show generated -- version 0.2.5
v0.2.5 → v0.2.67208482010-02-23 · run as daemon without GUI, hooked wxApp::Initialize to ignore gtk-init-check failure if no GUI, fork to daemonize, rpc g
v0.2.6 → v0.2.7138387942010-02-25 · GUI-less build target bitcoind that links to wxBase and shouldn't need GTK, split init and shutdown from ui.cpp into ini
v0.2.7 → v0.2.814135912010-05-19 · Mac OS build fixes by laszlo -- version 0.2.8
v0.2.8 → v0.2.9146421052010-05-26 · better prevention of inventory relaying during initial download, message checksum between nodes with 0.2.9 or higher, op
v0.2.9 → v0.2.10152971722010-06-10 · automatically change displayed address whenever it receives anything, added help and -? for daemon command line rpc comm
v0.2.10 → v0.2.11524132010-06-15 · more addr message error checking -- version 0.2.11
v0.2.11 → v0.2.12496202010-06-18 · use seed nodes as fallback if IRC fails or with TOR -- version 0.2.12
v0.2.12 → v0.2.13956352010-06-21 · fixed colors on ubuntu lucid, enabled -O2 in makefile.unix, boost removed -mt from their library names in 1.40, updated
v0.2.13 → v0.3.01555382010-07-04 · version 0.3 release
v0.3.0 → v0.3.1152631102010-07-19 · version 0.3.1 release
v0.3.1 → v0.3.232072010-07-19 · security safeguards, limited addr messages -- version 0.3.2
v0.3.2 → v0.3.3194111152010-07-26 · Gavin Andresen's JSON-RPC HTTP authentication, faster initial block download -- version 0.3.3
v0.3.3 → v0.3.6231,5212,1172010-07-30 · reverted makefile.unix wx-config -- version 0.3.6
v0.3.6 → v0.3.7852542010-07-31 · fixed segfault in bignum.h, additional security limits, refactoring -- version 0.3.7
v0.3.7 → v0.3.8884372010-08-04 · new safety feature displays a warning message and locks down RPC if it detects a problem that may require an upgrade --
v0.3.8 → v0.3.10177761722010-08-15 · makefile.unix to build with option to enable tcatm's 4-way SSE2 SHA-256 with -4way switch on Linux -- version 0.3.10 rel
v0.3.10 → v0.3.12201,2515772010-09-07 · cleanup, catch some recoverable exceptions and continue -- version 0.3.12 release
v0.3.12 → v0.3.13155502732010-09-30 · fixed linux build, dkaparis: _WIN32_WINNT 0x500 -- version 0.3.13 release
v0.3.13 → v0.3.14206442342010-10-21 · -- version 0.3.14 release
v0.3.14 → v0.3.15143631642010-11-14 · -- version 0.3.15 release
v0.3.15 → v0.3.17151,1154092010-11-25 · -- version 0.3.17 release
v0.3.17 → v0.3.18156391932010-12-08 · -- version 0.3.18 release
v0.3.18 → v0.3.19950262010-12-13 · -- version 0.3.19 release
v0.3.19 → r202549172010-12-15 · get external ip from irc
r202 → v0.3.20187283662011-02-18 · Changed setup for mingw toolchain
v0.3.20 → v0.3.21231,2536012011-04-20 · Better wording for transaction fee notification messages
v0.3.21 → v0.3.22371,0272,0662011-06-02 · Bugfix for dnsseed introduced by dnslookup
v0.3.22 → v0.3.2310149292011-06-11 · Merge pull request #300 from sipa/connecttimeout
v0.3.23 → v0.3.24282,7772,3062011-07-08 · Compile 'sv' translation

Sources: bitcoin-0.1.0.tgz and bitcoin-0.1.3.rar from the research mirror; everything from v0.1.5 on is from the SourceForge SVN history as preserved in the bitcoin/bitcoin repository. Line endings are normalized to Unix; nothing else is touched. For what the code does and how it changed, read the code analysis.

0:000:00