The Code Odds: How Far Can Code Move the Needle?
10. The Code Odds: How Far Can Code Move the Needle?
Distances and habit counts are nice, but people keep asking me the obvious question: so what are the chances? I've finally put a number on it, with one big condition: these are code-only odds. They answer a narrow question (given the C and C++ we can measure, how much should each person's chance of being Satoshi go up or down?), and everything else, from the 2024 Craig Wright judgment to posting hours and British spellings, stays in the other chapters on purpose. Mixing it all into one magic percentage would look clever and mean nothing.
So the evidence comes first. For every suspect with scorable code you'll see what pulls their code away from Satoshi's, where it matches, and the resulting code multiplier (statisticians call it a likelihood ratio: ×1 means the code tells us nothing, above 1 raises the odds, below 1 lowers them). Only then the percentage, which needs a starting point that I've chosen for you and you can change.
The short version
Code barely moves anyone. Wei Dai's Crypto++ is the closest independent code in the study and it earns a multiplier of ×1.20, which takes him from 1.25% to about 1.52%. Nobody gets more than about ×1.5 in any version of the model, and "someone not on the list" keeps about half. The reason is pretty humbling: the same programmer writing a different project can land as far from himself as two strangers do (Gavin Andresen's own two codebases sit 2.56 apart, while 95% of the 490 pairs of different authors in the study land between 1.09 and 4.34). Only a distance below roughly 0.8 would really move the needle (×2.54 at 0.8, the ×20 cap at 0.5), and nobody's independent code gets anywhere near that.
With 30% for an outsider, each of the 40 rows starts at 1.75%.With 50% for an outsider, each of the 40 rows starts at 1.25%.With 80% for an outsider, each of the 40 rows starts at 0.5%. Every row starts equal on purpose: this is a code lens, and fame isn't evidence.
Wei Dai · Crypto++ 5.5.2 (2007) · distance 1.023
Pulls away from Satoshi:
- indents with tabs: 99% vs Satoshi's 0% (17% of the gap)
- Satoshi's type prefixes (nValue, fFlag, vch, pindex): 2% vs Satoshi's 53% (17% of the gap)
- pointer star glued to the type (CNode* p): 6% vs Satoshi's 97% (12% of the gap)
Matches: camelCase function names (0.5% vs 0%); m_ member prefixes (0.2% vs 0%); space after if/for/while (99% vs 100%).
Paul Le Roux · E4M 2.01 (1998–99) · distance 1.328
Pulls away from Satoshi:
- Microsoft-style Hungarian (dwFlags, lpszName): 27% vs Satoshi's 1% (17% of the gap)
- space before call parentheses, foo (x): 98% vs Satoshi's 0% (13% of the gap)
- GNU-style return type on its own line: 100% vs Satoshi's 0% (11% of the gap)
Matches: space after if/for/while (100% vs 100%); braces on their own line (100% vs 100%); lowercase hex (0xff) (94% vs 92%).
Len Sassaman · Mixmaster, his own lines · distance 1.338
Pulls away from Satoshi:
- cuddled "} else {": 23.6 per 1k lines vs Satoshi's 0 per 1k lines (16% of the gap)
- braces on their own line: 17% vs Satoshi's 100% (12% of the gap)
- lowercase hex (0xff): 0% vs Satoshi's 92% (11% of the gap)
Matches: return (x); with parentheses (14 per 1k lines vs 14 per 1k lines); space after if/for/while (99% vs 100%); space after commas (93% vs 92%).
Hal Finney · RPOW 1.2.0 (~2004) · distance 1.408
Pulls away from Satoshi:
- plain lowercase variable names: 95% vs Satoshi's 28% (15% of the gap)
- Satoshi's type prefixes (nValue, fFlag, vch, pindex): 0.2% vs Satoshi's 53% (10% of the gap)
- indents with tabs: 100% vs Satoshi's 0% (9% of the gap)
Matches: space after commas (92% vs 92%); space after if/for/while (100% vs 100%); snake_case names (2% vs 1%).
Dan Kaminsky · Paketto Keiretsu 2.00 (2002–03) · distance 1.628
Pulls away from Satoshi:
- printf-family calls: 90.1 per 1k lines vs Satoshi's 22.9 per 1k lines (35% of the gap)
- snake_case names: 36% vs Satoshi's 1% (10% of the gap)
- Satoshi's type prefixes (nValue, fFlag, vch, pindex): 0% vs Satoshi's 53% (7% of the gap)
Matches: long-line length (95th percentile) (82 chars vs 83 chars); space after commas (95% vs 92%); lowercase hex (0xff) (86% vs 92%).
Pieter Wuille · JIF (2011, after Bitcoin) · distance 1.603
Pulls away from Satoshi:
- average line length: 48 chars vs Satoshi's 33 chars (33% of the gap)
- braces on their own line: 4% vs Satoshi's 100% (11% of the gap)
- lowercase hex (0xff): 0% vs Satoshi's 92% (8% of the gap)
Matches: space after if/for/while (100% vs 100%); #define macros (3.2 per 1k lines vs 2.8 per 1k lines); camelCase function names (2% vs 0%).
Written after Bitcoin existed, so it may have been shaped by reading Satoshi's code. Scored, but treat it with care.
Zooko Wilcox-O'Hearn · pycryptopp and zfec (2007–09) · distance 1.595
Pulls away from Satoshi:
- goto: 19.5 per 1k lines vs Satoshi's 0 per 1k lines (15% of the gap)
- braces on their own line: 0% vs Satoshi's 100% (13% of the gap)
- long-line length (95th percentile): 111 chars vs Satoshi's 83 chars (12% of the gap)
Matches: space after if/for/while (100% vs 100%); space before call parentheses, foo (x) (6% vs 0%); Microsoft-style Hungarian (dwFlags, lpszName) (0% vs 1%).
Adam Back · hashcash 1.21 · distance 1.577
Pulls away from Satoshi:
- snake_case names: 41% vs Satoshi's 1% (14% of the gap)
- #define macros: 61.1 per 1k lines vs Satoshi's 2.8 per 1k lines (14% of the gap)
- braces on their own line: 18% vs Satoshi's 100% (8% of the gap)
Matches: space after if/for/while (99% vs 100%); average line length (34 chars vs 33 chars); Microsoft-style Hungarian (dwFlags, lpszName) (0.4% vs 1%).
Wladimir van der Laan · etna_viv (2012–13, after Bitcoin) · distance 2.054
Pulls away from Satoshi:
- ++i rather than i++: 73% vs Satoshi's 16% (54% of the gap)
- snake_case names: 47% vs Satoshi's 1% (11% of the gap)
- space after if/for/while: 6% vs Satoshi's 100% (7% of the gap)
Matches: camelCase function names (0.8% vs 0%); space after commas (94% vs 92%); lowercase hex (0xff) (98% vs 92%).
Written after Bitcoin existed, so it may have been shaped by reading Satoshi's code. Scored, but treat it with care.
Gavin Andresen · SGI Open Inventor (1990s) · distance 2.590
Pulls away from Satoshi:
- share of lines that are comments: 52% vs Satoshi's 10% (72% of the gap)
- camelCase variable names: 49% vs Satoshi's 9% (7% of the gap)
- Satoshi's type prefixes (nValue, fFlag, vch, pindex): 1% vs Satoshi's 53% (3% of the gap)
Matches: snake_case names (0.8% vs 1%); average line length (33 chars vs 33 chars); space after if/for/while (99% vs 100%).
Andrew Poelstra · RamseyScript (2011–13, after Bitcoin) · distance 2.747
Pulls away from Satoshi:
- ++i rather than i++: 93% vs Satoshi's 16% (57% of the gap)
- == NULL comparisons: 29.1 per 1k lines vs Satoshi's 2 per 1k lines (11% of the gap)
- share of lines that are comments: 27% vs Satoshi's 10% (10% of the gap)
Matches: space after if/for/while (100% vs 100%); goto (0.2 per 1k lines vs 0 per 1k lines); Microsoft-style Hungarian (dwFlags, lpszName) (0% vs 1%).
Written after Bitcoin existed, so it may have been shaped by reading Satoshi's code. Scored, but treat it with care.
Dustin Trammell · code snippets (small sample) · distance 3.424
Pulls away from Satoshi:
- printf-family calls: 224.2 per 1k lines vs Satoshi's 22.9 per 1k lines (75% of the gap)
- share of lines that are comments: 24% vs Satoshi's 10% (5% of the gap)
- space after if/for/while: 0% vs Satoshi's 100% (3% of the gap)
Matches: return (x); with parentheses (12.1 per 1k lines vs 14 per 1k lines); Microsoft-style Hungarian (dwFlags, lpszName) (0% vs 1%); == NULL comparisons (3 per 1k lines vs 2 per 1k lines).
Rows the code can't test (28)
These get a multiplier of exactly ×1. That's not a verdict: code can't test this, not cleared. Craig Wright, Nick Szabo and Peter Todd all sit here, which some readers will find annoying, but there's simply no independent pre-Bitcoin C or C++ of theirs to compare with Bitcoin v0.1. What we know about them from other evidence is in chapter 2 and the alibi chapter.
| Who | Why the code can't test it | Multiplier | Chance, code only |
|---|---|---|---|
| Cory Fields | Code can't test this, not cleared: inherited Bitcoin style (code written in or after Core) | ×1 (no update) | 1.80%1.28%0.50% |
| Craig Wright | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Daira Hopwood | Code can't test this, not cleared: inherited Bitcoin style (code written in or after Core) | ×1 (no update) | 1.80%1.28%0.50% |
| Dave Kleiman | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| David Chaum | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Dorian Nakamoto | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Elon Musk | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Eric Lombrozo | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Gregory Maxwell | Code can't test this, not cleared: a project's house style dominates | ×1 (no update) | 1.80%1.28%0.50% |
| Ian Grigg | Code can't test this, not cleared: language mismatch (no C or C++ to compare) | ×1 (no update) | 1.80%1.28%0.50% |
| James A. Donald | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Jed McCaleb | Code can't test this, not cleared: inherited Bitcoin style (code written in or after Core) | ×1 (no update) | 1.80%1.28%0.50% |
| Jeff Garzik | Code can't test this, not cleared: a project's house style dominates | ×1 (no update) | 1.80%1.28%0.50% |
| Jonas Schnelli | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Luke Dashjr | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Martti Malmi | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Matt Corallo | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Mike Hearn | Code can't test this, not cleared: a project's house style dominates | ×1 (no update) | 1.80%1.28%0.50% |
| Neal King, Vladimir Oksman, Charles Bry | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Nick Szabo | Code can't test this, not cleared: language mismatch (no C or C++ to compare) | ×1 (no update) | 1.80%1.28%0.50% |
| Peter Todd | Code can't test this, not cleared: inherited Bitcoin style (code written in or after Core) | ×1 (no update) | 1.80%1.28%0.50% |
| Phil Wilson (Scronty) | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Ray Dillinger | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Ross Anderson | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Ross Ulbricht | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
| Suhas Daftuar | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Tim Ruffing | Code can't test this, not cleared: Bitcoin-adjacent (years inside Core first) | ×1 (no update) | 1.80%1.28%0.50% |
| Vili Lehdonvirta, Michael Clear, Shinichi Mochizuki, Michael Weber, Kevin Groves, Laszlo Hanyecz, Marco Falke, Alex Morcos, Russell O'Connor, Patrick Strateman, Jonas Nick, Nils Schneider | Code can't test this, not cleared: no comparable code | ×1 (no update) | 1.80%1.28%0.50% |
How the odds are calculated
Each scorable suspect's distance to Bitcoin v0.1.0 is compared with two reference piles. The first pile is what different people look like: all 490 pairs of different authors in the study (median distance 1.913). The second is what the same person looks like when he writes a different project, which is the realistic test, because if Wei Dai were Satoshi we'd be comparing his other code with Bitcoin. Sadly, the study only has three such pairs (Gavin Andresen's Open Inventor vs his 2014–15 repos at 2.559, Dan Kaminsky's Paketto vs DakaRand at 1.140 and Greg Maxwell's CELT vs Opus at 1.725), plus Satoshi's own new lines inside his own project (0.295 to 0.669) for the case where a coder carries his habits over. The multiplier is how much likelier a distance is in the second pile than in the first, capped between ×0.05 and ×20, because a few hundred pairs can't certify anything stronger. The percentage is the multiplier applied to an equal starting share for all 40 rows, with the rest held by "someone not on the list". The ranges come from re-running the model six ways (three or five same-author pairs, a narrower and a wider spread, and no, normal or strong habit carry-over); they're not a confidence interval.
The 24-habit checklist isn't multiplied in, because it's built from the same 29 measurements and counting it again would be double-dipping. That's also why the "pulls away" lines above show each habit's share of the distance rather than 29 separate multipliers: with three same-author pairs, per-habit multipliers would be invented precision.
Why there's a number now (and what I said before)
My research archive of November 26th 2026 says that no unified score is given, by design, and that the columns are never collapsed into one probability. I still stand by the second half: these odds use the code column only, and writing, timing, geography and court findings are deliberately left out. What changed is that I've decided a carefully labeled code-only number, with its starting point printed next to it, is more useful than leaving readers to invent their own from a distance table. The archive files stay exactly as they were published (they're checksummed), and this chapter is the update.
Caveats: three same-author calibration pairs is a tiny sample; the Andresen and Maxwell pairs are partly fragment corpora; post-2009 code (Wuille, van der Laan, Poelstra) may have been shaped by Bitcoin itself; a deliberate disguise would break any style method; and the scanner is regex-based, not a full C++ parser. To make this stronger, the next step is a calibration set of a few dozen programmers with two independent projects each. The scripts are in the research mirror.
