cryptoadvance / specter-diy

DIY airgapped hardware wallet that uses QR codes for communication with the host
MIT License
440 stars 73 forks source link

Deterministic builds with docker #222

Closed stepansnigirev closed 1 year ago

stepansnigirev commented 1 year ago

Adds a way to build the firmware reproducibly. This means that anyone can build firmware from source code and verify that hashes match. Instructions are in docs/reproducible-build.md file.

Close https://github.com/cryptoadvance/specter-diy/issues/220

Related PRs:

Building at commit https://github.com/stepansnigirev/specter-diy/commit/0cd69c39cb0de9e89e0e70aa5cd88348d96356e2 I received output with the following hashes (without adding signatures):

╔═════════════════════════════════════════════════════════════════════════╗
║                   Message to sign with vendor keys:                     ║
║                                                                         ║
║    1.7.1-1yvvjtws4m2thlektrmf4t37pp7mujvzmz9t7qp5pc4yj8af809gqt94asp    ║
║                                                                         ║
╚═════════════════════════════════════════════════════════════════════════╝

═════════════════════ Adding signature to the binary ══════════════════════

Provide a signature to add to the upgrade file, or just hit enter to stop.

═════════════════════════ Hashes of the binaries: ═════════════════════════

1bccdef08ca35f3cf326d9dbe3f77f3864d51c304b814d179d52ef14d59dbf22  initial_firmware.bin
be558fc9709c23f7b82733f540feeeb38d77c28bbcf191800136a6f614584b66  specter_upgrade.bin
be558fc9709c23f7b82733f540feeeb38d77c28bbcf191800136a6f614584b66  specter_upgrade_unsigned.bin
netlify[bot] commented 1 year ago

Deploy Preview for specter-diy-docs ready!

Name Link
Latest commit f6aa13adbcb4c46ebac448b36fe08d08d46bcfc3
Latest deploy log https://app.netlify.com/sites/specter-diy-docs/deploys/634bf152f67def0009886a3e
Deploy Preview https://deploy-preview-222--specter-diy-docs.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.