https://github.com/chains-project/btc-supply-chain

Securing the Bitcoin software supply chain with an immutable database of SHA256

https://github.com/chains-project/btc-supply-chain

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

bitcoin supply-chain
Last synced: 5 months ago · JSON representation

Repository

Securing the Bitcoin software supply chain with an immutable database of SHA256

Basic Info
  • Host: GitHub
  • Owner: chains-project
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 103 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 3
  • Releases: 0
Topics
bitcoin supply-chain
Created over 5 years ago · Last pushed 6 months ago
Metadata Files
Readme

README.md

btc-supply-chain: the Bitcoin software supply chain database

btc-supply-chain is a database about the Bitcoin software supply chain. The goal of this database is to help the world use Bitcoin safely. It contains the key information required to trust bitcoin software components, starting with SHA256 of code for wallets, nodes and bitcoin libraries. This database is valuable:

  • for Bitcoin users, because they have an external source of information to verify the authenticity of the software they use (through verifying the SHA256 hash)
  • for Bitcoin developers of wallet/nodes, in order to submit their hash to a third party database

Contributions are welcome as pull-requests.

If you need professional support about the Bitcoin software supply chain, please contact Martin Monperrus by email.

  • auditing a bitcoin software supply chain
  • set up a verifiable reproducible build pipeline
  • reproduce a particular build
  • checking the validity of a file / developer key / organization.

    Related work

  • https://bitcoinissafe.com/ is a related project, with a focus on antivirus software adoption for Bitcoin tools.

  • https://BinaryWatch.org Checksum Checker, scheduled checks on Bitcoin project binaries, by Coinkite.

Web page

https://github.com/monperrus/btc-supply-chain/wiki contains the SHA256 of the latest version. It is meant to be indexed by the major search engines, starting with Google.

Bitcoin Full Nodes

If you run a full node, you absolutely want to verify the integrity of the code you're running. For instance, the SHA256 of Bitcoin Core v0.17.2 is 5a6b35d1a348a402f2d2d6ab5aed653a1a1f13bc63aaaf51605e3501b0733b7a.

See folder db/full-nodes

Wallets

The wallet supply chain information is in folder wallets.

To verify that you use a safe wallet program:

  1. Compute the SHA256 sum of the wallet binary or installation file you've just downloaded
  2. Check that is known by Google, eg https://encrypted.google.com?q=6b98b367acdee51961118f57d0ba40e57f369d031a43c673ad76cda97cf61db1. If there is 0 results on Google STOP AND DELETE THE FILE, it can be a malware trying to steal your bitcoin.
  3. If Google knows it, check the reliability of the websites where this SHA256 appears
  4. If Google knows it, check whether the SHA256 sum appears in folder db/wallets (see section "Meta-trust" below)

DONT:

  • Do NOT download wallet programs from arbitrary websites
  • Do NOT install a wallet app through the Google Play Store / Apple App Store because you cannot verify the APK signatures beforehand, you have to entirely trust Google / Apple.

Advanced users want to verify the cryptographic GPG signature of the wallet binary, and verify that it comes from a trusted source.

Software Dependencies

Now we're talking. Verifying the software supply chain at the developer level is much harder than verifying a single wallet or node software. One needs to verify the provenance of all libraries and tools (eg compiler) used to create the final executable (see the excellent talk by Carl Dong at https://youtu.be/I2iShmUTEl8).

There is excellent tool support for verifying a supply chain:

Checking btc-supply-chain

To verify that the data contained in this repo is consistent, see script check-btc-supply-chain.py.

Meta-trust

Wait! Maybe this website has been compromised? That's entirely correct! You should make your own research about this website as well. Mitigation:

  • We use double-factor authentication
  • All commits are signed with Martin Monperrus' GPG key.
  • Public keys of repositories and package managers

License

The content of this repository is licensed under the MIT license.

Owner

  • Name: CHAINS research project at KTH Royal Institute of Technology
  • Login: chains-project
  • Kind: organization

"Consistent Hardening and Analysis of Software Supply Chains" at KTH, funded by SSF

GitHub Events

Total
  • Push event: 2
Last Year
  • Push event: 2

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 48
  • Total Committers: 1
  • Avg Commits per committer: 48.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Martin Monperrus m****s@g****g 48
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 2
  • Total pull requests: 18
  • Average time to close issues: 8 months
  • Average time to close pull requests: 43 minutes
  • Total issue authors: 1
  • Total pull request authors: 3
  • Average comments per issue: 2.5
  • Average comments per pull request: 0.11
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • monperrus (2)
Pull Request Authors
  • monperrus (16)
  • montao (1)
  • renovate[bot] (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

requirements.txt pypi
  • packaging *
  • requests *