# Methodology Prepared 26 November 2026 (Europe/Bucharest, EET, UTC+2) as a companion to the code-style report (`report.md`) and the stylometry report (`stylometry_report.md`). The aim is that a reader with the same public sources and these scripts can reproduce the numbers. This document describes work done in several passes on the same analysis box between 20 October and 26 November 2026. Existing distances were kept comparable by freezing the standardisation sample (see §3). ## 1. Question and scope The question is narrow: does the publicly attributable C or C++ of people proposed as Satoshi Nakamoto look like the code published under that name in November 2008 and in Bitcoin v0.1.0 (January 2009)? A later, separate study asked the same people about English prose, posting hours, personal details Satoshi volunteered, a 1999 Benelux symposium paper, and a January 2009 node in Hal Finney's debug log. The work does **not** attempt to identify Satoshi. Style can be learned, disguised or imposed by a project. No line of evidence is treated as decisive, and the columns are never collapsed into one probability. ## 2. How code corpora were chosen and verified ### 2.1 Satoshi's own code (the reference) | Corpus | What | Source and verification | |---|---|---| | `satoshi_v0.1.0` | Bitcoin v0.1.0 C++ | Local copies under `original-bitcoin/`, `jhuboo-satoshi/` and `bitcoin_src1/`. This is the reference for the 29-feature distance and the 24-habit checklist. | | `satoshi_nov2008` | Pre-release preview Ray Dillinger later posted (four C++ files, later `main.cpp` / `main.h` / `net.cpp` / `net.h`) | The same tree. Used as a same-author control, not as a second reference for the distance. On the composite measure it sits 0.295 from v0.1.0. | Bundled third-party files (for example Wei Dai's SHA code in `sha.cpp`) were noted where they appear, and `sha.cpp` was used as evidence of Satoshi's editor settings (tabs re-indented to 4 spaces, CRLF) rather than as Satoshi-authored style. ### 2.2 Suspect code A corpus was scored only when all of the following held: 1. The files are public. 2. Authorship can be isolated (copyright header, git author/blame, or a single-author repository), not merely "this person once committed to a large tree". 3. The language is in the C family (C, C++, or, with a heavy caveat, Java or JavaScript). Python, Haskell, Go, Rust, Perl and similar are recorded as language mismatches and are not given a 29-feature distance. 4. Vendored, generated or clearly third-party files are removed. **Authorship isolation:** - Whole single-author repos were kept as files (Crypto++, E4M, hashcash, RPOW, Paketto, DakaRand, RamseyScript, jTime, and similar). - Multi-author trees used `git blame` at a fixed revision, or lines *added* in the person's own non-merge commits (`added_lines.py`, `added_lines_any.py`, `added_lines_hopwood.py`, `blame_author.py`, `build_author_corpus.py`). - Header-copyright filters were applied where blame would otherwise credit imports (for example van der Laan's etna_viv: only files with Etnaviv or van der Laan copyright headers). - Commit subjects that said import, update, upgrade, bump, or named a third-party drop were dropped in the Hopwood zcashd extraction, as were data-only lines (long hex strings, `0x` byte arrays, licence/copyright text) and diff hunks whose `/* */` delimiters were cut in half (those hunks made the comment stripper swallow following code). Every scored corpus is listed in `report.md` §1 with a URL, commit or tag, the keep/exclude rule, line counts, language and era. The exact files analysed live under `corpus/`. Raw clones and downloads live under `corpora/`, `corpora2/`, `corpora3/`, `cryptopp/`, `RPOW/`, `E4M/` and similar. ### 2.3 What could not be reached - **James A. Donald, Crypto Kong / KongTools C++ source (1997–2000).** The product page (historically `http://www.jim.com/jamesd/Kong/Kong.htm`) advertised "Download KongTools source code (requires Visual C++ 5.0 to compile)". That source archive was not found on 26 November 2026. What *was* found, on public FTP mirrors other than web.archive.org, is only the Windows installer `KongSetup.exe` (4,464,128 bytes, dated 10–11 January 1998), at `https://ftp.gwdg.de/pub/misc/crypt/archive/utopia.hacktic.nl/crypto/CRYPTOapps/cryptokong/` and `https://ftp.mizar.org/pub/security/replay/crypto/CRYPTOapps/cryptokong/`. An installer is not source and was not scored. archive.org item search and GitHub search did not turn up `KongToolsSource`. web.archive.org has been unreachable from this box in earlier passes. - **web.archive.org** itself (intermittent or blocked from the box). Some Wayback URLs cited in the stylometry report were fetched in earlier sessions or via other mirrors. - **eros-os.org, erlang.org, cryptix.org** (capability-security and Cryptix hosting): HTTP 522 or timeouts. This blocked a fuller Hopwood pre-2009 corpus (e-lang, cap-talk, erlang-questions). Cryptix 3.0 is known from a 24 December 1997 announcement (cryptome) to be Java, and was not scored. - **Google Scholar** (unreachable) and **Semantic Scholar** (HTTP 429) during the Benelux citation search. - Some vendor sites and old personal pages now return 404 (for example original DoxPara Paketto tarballs). Third-party GitHub imports were used only when the import itself recorded a tarball checksum or a clear provenance note, and that caveat is in the corpus row. ## 3. The 29 features, 24 habits, standardisation and distance Scripts: `style_metrics.py` (writes `metrics.csv`), `extra_metrics.py`, `similarity.py`. Comments and string contents are stripped by a scanner that understands `//`, `/* */` and quotes, then metrics are counted with regular expressions. This is not a full C++ parser. Ratios are more reliable than raw counts. ### 3.1 Twenty-nine continuous features (the distance) `tab_indent_ratio`, `allman_ratio`, `kw_space_ratio`, `comma_space_ratio`, `assign_spaced_ratio`, `ptr_type_side_ratio`, `line_comment_ratio`, `hex_lower_ratio`, `comment_lines_pct`, `mean_line_len`, `p95_line_len`, `decl_satoshi_prefix_pct`, `decl_win_hungarian_pct`, `decl_lowercase_word_pct`, `decl_snake_pct`, `decl_camel_lower_pct`, `decl_m_prefix_pct`, `cuddled_else_per_kloc`, `oneline_body_per_kloc`, `goto_per_kloc`, `eq_null_per_kloc`, `define_per_kloc`, `return_paren_per_kloc`, `printf_family_per_kloc`, `preinc_ratio`, `call_space_before_paren_ratio`, `gnu_return_type_own_line_ratio`, `func_name_pascal_pct`, `func_name_camel_pct`. For each feature \(k\), a mean \(\mu_k\) and population standard deviation \(\sigma_k\) are computed on a **frozen** pool of the original eight full-file corpora: `back_hashcash_1.21`, `finney_rpow_1.2.0`, `leroux_e4m_2.01`, `mccaleb_newcoin_2011`, `mixmaster_3.0_project`, `satoshi_nov2008`, `satoshi_v0.1.0`, `weidai_cryptopp_5.5.2`. Adding a new corpus does not change anyone else's z-scores. The distance to Satoshi v0.1.0 is the root-mean-square of the standardised differences over the features that are defined for both sides: \[ d = \sqrt{\frac{1}{c}\sum_k \left(\frac{a_k - b_k}{\sigma_k}\right)^2} \] where \(c\) is the number of features with values on both corpora (a language that cannot express a feature contributes `n/a` and is skipped). Sub-distances for layout/formatting, naming, and comments/idioms use the same formula on the corresponding feature groups listed in `similarity.py`. **Control:** Satoshi November 2008 versus v0.1.0 is 0.295. That is what "the same author, a few months apart" looks like on this measure. Independent suspects in this study fall between about 1.0 and 3.4. ### 3.2 Twenty-four binary habits (the checklist) Thresholds are judgement calls, chosen against Satoshi v0.1.0 and written out in `similarity.py` and in `report.md` §3. They are: 1. Spaces (not tabs) for indentation (`tab_indent_ratio` near 0). 2. 4-column indent unit. 3. Allman braces (opening `{` on its own line; high `allman_ratio`). 4. Never `} else` on one line (`cuddled_else_per_kloc` = 0). 5. Space between `if`/`for`/`while` and `(`. 6. Pointer or reference attached to the type (`CNode* p`, high `ptr_type_side_ratio`). 7. `//` line comments, not `/* */`. 8. Satoshi-style Hungarian (`n`/`f`/`str`/`vch`/`map`/`p`…) on more than 20% of declared names. 9. No Microsoft Windows Hungarian (`dw`/`lp`/`sz`/`b`/`h`…) above 10%. 10. Little `snake_case` (under 5% of declared names). 11. No `m` / `m_` member prefix. 12. No `goto` (under 1 per KLOC). 13. Rare `== NULL` (under 5 per KLOC). 14. Few `#define`s (under 10 per KLOC). 15. printf-family debug output (over 10 per KLOC). 16. One-line inline bodies `{ return x; }` (over 5 per KLOC). 17. Lowercase hex literals. 18. A named 64-bit int typedef (over 3 per KLOC). 19. C-prefixed class names (C++ only). 20. Custom foreach / loop / lock-block macros. 21. No space between function name and `(` in calls. 22. Return type on the same line as the function name (not GNU style). 23. PascalCase function or method names (over 60%). 24. Boolean flags prefixed `f` (`fFoo`), not `b` (`bFoo`). A habit that a language or sample cannot express is `n/a` and is excluded from the denominator (so "16/24" means 16 matches out of 24 applicable items). ### 3.3 Confounds, labelled in the ranking - **Inherited:** written inside Bitcoin Core, or inside a Bitcoin Core fork, after 2009. Satoshi-like `fFoo`, `CFoo`, `T* p` and similar are expected. Andresen 2010–12, Todd, McCaleb, Hopwood's zcashd lines. - **Adjacent:** outside the Bitcoin tree, but written after years of Core work (Fields, Lombrozo, Schnelli, Ruffing, Corallo, Dashjr in part, Daftuar). - **Imposed:** a project house style dominates (Wine, Linux kernel, Xiph/CELT/Opus, cgminer, Mesa in part). - **Language mismatch:** C versus C++, or Java / JavaScript versus C++. - **Fragment corpora:** blame and added-line samples skip function-level metrics and can inflate comment density. - **Small samples:** distances on a few hundred lines are noisy. ## 4. Stylometry (writing, habits, timing, personal details) The technical report is `stylometry_report.md` (Revision 5). The publication-facing account of *prose* style — corpora, methods, validation, habit tables, verbatim quotes, coverage gaps, and the Wright provenance filter — is `writing_style.md`. In brief: **Cleaning (`textutil.py`):** drop quoted lines, signatures, forum quote blocks and code; mask URLs and names on some runs. Double spaces are measured only where the source keeps whitespace (mailing-list text, some forum HTML). **Attribution (`stylo.py`):** 2,000-word chunks (1,000-word rerun), at most 40,000 words per author. Four methods: Burrows' Delta and Cosine Delta on the 150 most frequent function words; z-scored character 3–4-gram cosine (top 3,000 n-grams, names masked); the same after topic masking (non-function words replaced by `*`). Validation: leave-one-chunk-out, and **cross-register** train/test. Cross-register top-1 accuracy in the latest run (pool of 33, Revision 5) is about 49–63% at 2,000 words, down from about 92–94% within one register. People known only from papers or essays cannot be tested fairly. **Habit counts (`features.py`):** British/American spelling lexicon, `-ise`/`-ize`, double-space ratio, "e-mail" versus "email", "lets" versus "let's", its/it's errors (hand-checked where flagged), punctuation rates, sentence length, hedges, we/I, sign-offs. **Timing (`timing.py`):** UTC hour histograms of timestamped events through 2015; emptiest 6-hour circular window; Pearson correlation with Satoshi's hourly profile at the same clock (r0) and at the best shift; Date-header and git offsets. Satoshi's quiet window is 07:00–13:00 UTC. **Personal details:** regex and KWIC search of the Satoshi corpus, with exact quotes and URLs (`grep_satoshi.py`, `kwic.py`). Biographical claims about suspects are cited (Wikipedia wikitext snapshots in `stylometry/raw/bios/` where a page exists) or marked unverified. The 26–27 November 2026 passes did **not** re-run the stylometry pipeline or move Revision 5 ranks. Many newly listed names have no comparable public prose in the existing corpus builder, or have only interviews, tweets or papers in the wrong register. Their code status is in the census; their writing is described in `writing_style.md` and marked untested or weakly testable unless an earlier revision already scored them. Craig Wright is scored only on GIAC/SANS papers with third-party provenance; blogs and court-disclosure documents are excluded, with reasons in `writing_style.md` §7 and `mirror/stylometry/writing_style_notes/WRIGHT_EXCLUSION.md`. ## 5. Column A (Benelux symposium / Massias paper) and column B (Covad Los Angeles node) **A.** Whitepaper reference [2] is H. Massias, X. Serret Avila, J.-J. Quisquater, "Design of a secure timestamping service with minimal trust requirement", 20th Symposium on Information Theory in the Benelux, 27–28 May 1999, Haasrode (Leuven). The WIC's own scan was OCRed (`stylometry/raw/wic/p1995.txt`–`p2008.txt`). A documented tie (attendance, authorship, or a cited institutional link) scores ✓. "None found" is not evidence against. Proceedings PDFs on the WIC site have 2020 creation dates. **B.** Hal Finney's `debug.log`, attached to his 10 January 2009 bitcoin-list post. The operator-flagged peer is `68.164.57.219`, hostname `h-68-164-57-219.lsanca54.dynamic.covad.net` (Covad dynamic DSL, Los Angeles POP). Finney's own node in the same log is `207.71.226.132` on netlojix. A Tor peer is also present. Nothing in the log names Satoshi; the link is a public inference. Scoring is against a cited 2009 residence: C = consistent with a Los Angeles-area residential DSL, I = inconsistent unless travel or a proxy, U = 2009 residence not established. ## 6. Fits/conflicts tally (ordering only) Defined in `stylometry_report.md` §8.C. It is **not** a probability. - Writing: ✓ if both Cosine and masked-char mean ranks ≤ 11; ✗ if both ≥ 18. Topic-artefact ✓* is not counted. - Timing: ✓ if r0 ≥ 0.75; ✗ if r0 < 0.55 or the clock is ruled out. - Habits: ✓ if at least 2 of 3 (British forms, double space, "e-mail") match; ✗ if at most one matches. - Code: ✓ if distance ≤ 1.2; ✗ if ≥ 1.6. Inherited/adjacent/imposed rows stay in the table but the confound is noted. - A: ✓ only for a documented tie. - B: C = ✓, I = ✗. Rows are ordered by (✓ − ✗), then by timing. Adjacent rows should be read as ties. The 26 November census adds people to the **code** ranking; it does not recompute the stylometry tally except where a person was already in Revision 5. ## 7. How the 26 November 2026 suspect list was built The starting list was everyone already scored or listed as having no usable code in `report.md`. It was then expanded from: - English Wikipedia, "Satoshi Nakamoto", section "Possible identities", fetched 26 November 2026 (`https://en.wikipedia.org/wiki/Satoshi_Nakamoto`). - The same article's citations (Newsweek 2014, New Yorker 2011, Fast Company 2011, Wired/Gizmodo 2015, UK High Court 2024, HBO *Money Electric* 2024, New York Times / John Carreyrou 8 April 2026, the 2026 documentary *Finding Satoshi*, and others named in that article). - A November 2025 rumour naming Daira Hopwood (CCN, Cryptonews), already treated as an unverified public claim in Revision 5. - Names already examined in earlier passes even when Wikipedia does not currently give them their own subsection (Wei Dai, Ian Grigg, James A. Donald, Zooko Wilcox-O'Hearn, Dustin Trammell, Dan Kaminsky, Daira Hopwood, early Bitcoin Core contributors, Phil Wilson / "Scronty", Kevin Groves, Ross Anderson). A name was included if a dated, citable public source proposed that person (or a named team) as Satoshi, or if an earlier pass of this study had already treated them as a usual suspect with a stated reason. Forum-only nicknames without a retrievable source in this pass are not listed as if they had been verified. "Jack Dorsey", "Bram Cohen", "Gwern Branwen" and "Jim Bell" were searched as possible additions; no comparable news or encyclopaedia proposal that *they* are Satoshi was found on 26 November 2026, so they appear only as brief negative searches, not as suspects. Each person was then run through the same code rule: find personally authored public C or C++, isolate their lines, score with the locked metrics if comparable, otherwise a one-line cited reason for "no usable code". ## 8. Podcast quotes Quotes in `podcast_quotes.md` are copied verbatim from Bitcoin Takeover transcript pages fetched on 26 November 2026. Each quote has episode title, guest, episode number, publication date, URL and timestamp. The site's own disclaimer is that the transcripts start as machine transcripts and are corrected by hand, and that the recording is what counts. No quote was paraphrased or invented. Episodes that were searched but contained no usable passage, and people who do not appear as guests in the public transcript index, are listed as such. ## 9. Reproducing the numbers ``` cd /workspace/satoshi-code python3 style_metrics.py > metrics_table.txt # writes metrics.csv python3 extra_metrics.py python3 similarity.py > similarity_out.txt # stylometry (from stylometry/): python3 build_corpora.py python3 stylo.py 2000 python3 stylo.py 1000 python3 features.py python3 timing.py python3 summarize.py ``` Standardisation is frozen to the original eight full-file corpora inside `similarity.py`. After any extraction, confirm that `poelstra_ramseyscript_2011_2013` is 2.747 and `weidai_cryptopp_5.5.2` is 1.023 (a missing `target/` subdirectory has previously shifted Poelstra to 2.727; restore those eight files from `corpora3/apoelstra__RamseyScript` at `83261f9` before trusting a new run). ## 10. Limits (short list) Style similarity is weak evidence of identity. Language, era, project conventions, inherited Core style, fragment corpora, small samples and unreachable archives all bias the numbers. Cross-register writing attribution is only about a coin flip to 60%. Timing cannot separate a US resident from a night owl. Column A depends on OCR and incomplete citation databases. Column B is one evening's log plus an inferred link to Satoshi. Residences are often from Wikipedia or mail headers and are not always verified for January 2009. No unified score is given, by design. ## 11. Binary-trait analysis (26 November 2026) A later pass asked whether installers and shipped Windows programs could be compared when source was missing. The method and findings are in `binary_analysis.md`. In brief: - Only static unpacking and PE parsing. Windows binaries were not executed. Tools: `file`, `7z`, `unar`, `binwalk`, `pefile` (`kong/analysis/pe_analyze.py`), `strings`. - The control is `bitcoin.exe` from the public `bitcoin-0.1.0.rar`, SHA-256 `fbcac071d92e26d82ec917214e334bd43850c0691f113bab1d4741c9bdd30d2d`. - Recoverable traits: linker version, Rich header (presence; product-id labels are approximate), compile timestamp, imported DLLs, RTTI names, PDB and `__FILE__` strings, version resources, exports, some error/format strings. - **Not** recoverable, and not scored: the 29 source features and 24 habits (indent, braces, comments, most naming). No 29-feature distance is ever computed from a binary. - Installer hashes, URLs and extraction notes are in `binary_analysis.md` and in `kong/analysis/PROVENANCE.txt`. - Crypto Kong source was still not found on the FTP mirrors or in the installer. The shipped app is Visual Basic 5 plus a small VC++ 5 OCX. ## 12. Accompanying files (26 November 2026, later the same evening) The method in the sections above is unchanged. The publication directory now also contains: - `investigation_log.md` — a chronological notebook of what was tried, including failed retrievals. - `suspects_table.md` and `suspects_table.csv` — one row per suspect, with the locked source distance (or an unscorable reason), binary notes, writing, timing, Columns A and B, and a path into the mirror. - `alibi.md` — cited activities before Bitcoin and through 2026. Unverified claims are marked. - `binary_analysis.md` §5 — the second binary pass (DigiCash `ecashlib`, PGPfreeware 6.5.1, and the files still not retrieved). - `publication/mirror/` and the separate `mirror.tar.zst` archive — see `mirror/README.md` and `mirror/MANIFEST.csv`. Redistribution flags are part of the method: a file we used is listed even when its license may not allow republication. ## 13. Writing-style section (27 November 2026) `writing_style.md` is the standalone prose-style section requested for the website package. It does not change the locked 29-feature code distances or the Revision 5 writing ranks. New mirror files are under `mirror/stylometry/writing_style_notes/` (including official [2024] EWHC 1198 (Ch) PDFs and the used-versus-excluded Wright list) and a short README in `mirror/stylometry/raw/wright/`.