Add reproducible binary verification workflow#48
Open
KingParmenides wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to SatoshiPortal/bdk-flutter#5 and the reproducible-build bounty in SatoshiPortal/bdk-flutter#1.
This ports the same Cargokit reproducibility verifier to
boltz-dart, one of the sibling libraries named in the bounty.What changed:
build_tool reproduce-binaries, which rebuilds selected Rust targets locally, downloads the matchingprecompiled_<crate-hash>GitHub release assets, verifies Ed25519 signatures, and byte-compares local vs remote artifacts.--url-prefixand--public-keyoverrides for release verification before committing aprecompiled_binariessection torust/cargokit.yaml.cargokit/docs/precompiled_binaries.mdandreproducible_builds/README.md.Verification performed:
dart format lib/src/build_tool.dart lib/src/reproduce_binaries.dartdart pub getwith Dart 3.4.4dart testwith Dart 3.4.4dart analyzewith Dart 3.4.4 (only existing info: unused private constructor inoptions.dart)dart run build_tool reproduce-binaries --helpdart run build_tool reproduce-binaries --manifest-dir=../../rust --target not-a-targetbash -n reproducible_builds/*.shgit diff --checkPayout BTC address for the linked bounty: 39Q34P8A7g375yqEr8buvNJkUbRgKfbKQZ