-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This project will be used to try to reproduce build of some of the larger and well know opensource projects.
The directory structure is as follows:
- wiki - The Wiki documentation for this project. To update, fork and make a PR
- pubkeys - The pubkeys used in the various attestments posted in this project
-
trezor - Directory for verifying the trezor-firmware Github repository
-
verify.sh - The main verification script to verify
trezor-firmware
builds - repo - Scratchpad to checkout the repository into (dynamically created)
- attest - Signed attestment files (and failures)
-
verify.sh - The main verification script to verify
To perform Trezor attestation, you will need to install GnuPG, Docker and Git. The process to do this varies widely based upon your OS, but it should work on Windows, Linux and macOS without serious modification. In a general sense, the process is fairly straight forward.
- Install GnuPG, Docker and Git.
- Perform GnuPG "gen-key" and save off the UID (User ID) for reference
- Clone this repo:
git clone https://github.com/brianddk/attestation.git
- CD to the proper directory (ie Trezor):
cd ./attestation/trezor
- Use your UID to attest a build:
./verify.sh --gpg-key YOUR_GPG_UID core/v2.6.0
All done!
Most builds use Docker under Linux, which is fine if you have an updated Windows OS. Windows supports something called WSL which allows you to run a Linux kernel from Windows. It's officially supported by Microsoft and not too terribly complex. Beyond WSL, you will also need to install Docker and GnuPG. I'll touch on the most basic concepts of these.
- Install WSL - The default Ubuntu distro works fine.
-
Install Docker - Just follow the first 6 steps to
hello-world
-
Enter WSL Shell -
wsl
without arguments is usually enough - Install GnuPG and GIT in WSL -
sudo apt update && sudo apt install gnupg git
- Continue with step #2 mentioned above in Trezor Attestation
NOTE: I use Gpg4win which works fine under WSL, you just have to remember to execute gpg.exe
instead of gpg
.
To name which program to use, prefix the script with GPG_BIN=gpg.exe
This should be old-hat for most Linux users, but I'll outline the basics. I'll assume Ubuntu since that is what I'm most familiar with
-
Install Docker - Setup the
apt
repo, install docker, runhello-world
- Install GnuPG and GIT -
sudo apt update && sudo apt install gpg git
- Continue with step #2 mentioned above in Trezor Attestation
This is what I'm least familiar with. I don't own Apple HW, and they forbid virtualization, so unless someone donates a old Mac, I'll just have to go off what ChatGPT tells me.
-
Install Docker - I'd likely suggest the
.dmg
install method - Verify Docker with Hello World - From a terminal window run
docker run hello-world
which should run without error - Install GnuPG and GIT from Terminal -
brew install git gnupg
(so says ChatGPT) - Continue with step #2 mentioned above in Trezor Attestation
For all the builds that are reproducible, the goal is to get as many people to attest to the build as possible. If you are willing to do so, please fork the repo, run the build, then submit a PR. If you have questions on how to do that, please feel free to post a discussion and I'll try to help.
Please feel free to fork this repo and make PRs if you can attest a build I have not yet determined how to. If find issues, please open an issue, or if you just have a question post a discussion topic. Please try to review the Wiki
- Trezor Attestation
- Coldcard Attestation
- Bitbox Attestation
- Bitcoin Core Attestation