Rebuilding BitcoinIII Core

Source commits, Debian toolchains and whole-file SHA-256 checks for the Linux and Windows releases of v29.1.0, v29.1.1 and v31.1.3.

Source and verification record

A match means that a source build, stripped and given the historical metadata printed below, has the SHA-256 of the entire distributed executable. For NSIS, the comparison includes the installer stub, script, compressed payloads and checksum. All release-derived inputs appear here as metadata values and expected hashes. You can run the recipes on a machine without any of the released files.

ReleaseRepository and branchCommit to check out
v29.1.0GitHub / mainf5c9d0e06cec52f04a02928654cf579a456e467b
v29.1.1GitHub / main9a63e1a7add399e6974f152baa348246c2121773
v31.1.3GitLab / main
GitHub mirror / canonical
98e43ae12e7a0044f87fdf22a827666623249d2a

The v29.1.0 tag points to 3642f04582e1e1ca47dab07015d495f55af35f1e. Three subsequent commits introduced the bit-12 block-header hash change present in the May release. Rebuilding the April tag with the May metadata matched only the two CLI executables out of 16. The later tree matched all 16. The v29.1.1 and v31.1.3 commits in the table are the commits reached by their version tags.

ReleaseLinux x86-64Linux AArch64Windows ZIP programsNSIS installer
v29.1.08 of 8 identicalNone shipped8 of 8 identicalNone shipped
v29.1.18 of 8 identical8 of 8 identical8 of 8 identical35,507,687 bytes identical
v31.1.37 of 7 identical7 of 7 identical7 of 7 identical40,472,428 bytes identical

The final v31 comparison also matched all bytes of the Linux x86-64 and AArch64 tar.xz files and the Windows ZIP. Each was packed from the verified source builds, the manual pages in the tagged tree and freshly generated manifests.

The v29 evidence includes the earlier source builds of all five archive target sets, rechecked against the supplied archives. A fresh checkout of the May commit was compiled again for native Linux using its source-built dependency prefix. The June installer was also rebuilt separately. The Debian 13 build checks ran on the supplied 13.8 host. The Debian 12 x86-64 build ran in a freshly provisioned Bookworm root. APT resolved the listed Debian 13 pins with an empty package database. Installing the dated snapshot in a second Debian 13 VM remains untested.

The build scope covers Linux x86-64, Linux AArch64 where shipped, and Windows x64. macOS requires an Apple SDK and was outside the build comparison. The final reference list includes the supplied macOS archive digests.

Prepare a Debian 13 amd64 build machine

Use Bash, GNU tools and a filesystem with room for multiple Qt builds and C++ object trees. Allow roughly 80 GiB of free space for this procedure. The commands use four parallel compiler jobs by default. Change jobs to suit available RAM. Bubblewrap supplies the absolute paths that the historical Qt and Boost builds embedded. Run compilers as your normal user on a machine that allows unprivileged user namespaces.

Run the following on a dedicated Debian 13 amd64 build system. The package pins record the Debian 13.8 environment used for the builds. APT resolves their dependencies. Using a dedicated system also makes it practical to reproduce the older package set after the live mirrors advance.

apt_opts=()

If your mirror has moved past a pin, select the dated Debian and Debian Security repositories in a fresh build VM before running the install block. These commands create an APT source list dedicated to this operation. The validity-date option permits historical indexes and keeps Debian signature verification enabled.

Select dated APT repositories if needed
apt_sources=$(mktemp --suffix=.list)
chmod 644 "$apt_sources"
cat > "$apt_sources" <<'SOURCES'
deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/20261130T000000Z/ trixie main
deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/20261130T000000Z/ trixie-updates main
deb [check-valid-until=no] https://snapshot.debian.org/archive/debian-security/20261130T000000Z/ trixie-security main
SOURCES
# For the dated repositories:
apt_opts=(-o "Dir::Etc::sourcelist=$apt_sources" -o 'Dir::Etc::sourceparts=-')
Install the build tools (run this block)
sudo apt-get "${apt_opts[@]}" update
sudo xargs -r apt-get "${apt_opts[@]}" install -y --no-install-recommends <<'PACKAGES'
autoconf=2.72-3.1
automake=1:1.17-4
binutils-aarch64-linux-gnu=2.44-3
binutils-mingw-w64-x86-64=2.44-3+12+b1
binutils-x86-64-linux-gnu=2.44-3
binutils=2.44-3
bubblewrap=0.12.0-1~deb13u1
build-essential=12.12
bzip2=1.0.8-6
ca-certificates=20250419+deb13u1
cmake-data=3.31.6-2
cmake=3.31.6-2
coreutils=9.7-3
cpp-14-aarch64-linux-gnu=14.2.0-19cross1
cpp-14-x86-64-linux-gnu=14.2.0-19
curl=8.14.1-2+deb13u7
dpkg-dev=1.22.22
file=1:5.46-5
g++-14-aarch64-linux-gnu=14.2.0-19cross1
g++-14-x86-64-linux-gnu=14.2.0-19
g++-14=14.2.0-19
g++-aarch64-linux-gnu=4:14.2.0-1
g++-mingw-w64-x86-64-posix=14.2.0-19+27+b1
g++=4:14.2.0-1
gcc-14-aarch64-linux-gnu=14.2.0-19cross1
gcc-14-x86-64-linux-gnu=14.2.0-19
gcc-14=14.2.0-19
gcc-mingw-w64-base=14.2.0-19+27+b1
gcc-mingw-w64-x86-64-posix-runtime=14.2.0-19+27+b1
gcc-mingw-w64-x86-64-posix=14.2.0-19+27+b1
gcc=4:14.2.0-1
git=1:2.47.3-0+deb13u1
gzip=1.13-1+deb13u1
krb5-multidev=1.21.3-5+deb13u2
libc-bin=2.41-12+deb13u5
libc6-arm64-cross=2.41-11cross1
libc6-dev-arm64-cross=2.41-11cross1
libc6-dev=2.41-12+deb13u5
libc6=2.41-12+deb13u5
libgcc-14-dev-arm64-cross=14.2.0-19cross1
libgcc-14-dev=14.2.0-19
libgcc-s1-arm64-cross=14.2.0-19cross1
libgcc-s1=14.2.0-19
libkrb5-dev=1.21.3-5+deb13u2
libstdc++-14-dev-arm64-cross=14.2.0-19cross1
libstdc++-14-dev=14.2.0-19
libstdc++6-arm64-cross=14.2.0-19cross1
libstdc++6=14.2.0-19
libtool=2.5.4-4
libzstd-dev=1.5.7+dfsg-1+deb13u1
linux-libc-dev-arm64-cross=6.12.38-1cross1
linux-libc-dev=6.12.118-1
m4=1.4.19-8
make=4.4.1-2
mingw-w64-common=12.0.0-5
mingw-w64-x86-64-dev=12.0.0-5
nsis-common=3.11-1
nsis=3.11-1
patch=2.8-2+deb13u1
perl=5.40.1-6+deb13u1
pkgconf=1.8.1-4
python3-minimal=3.13.5-1
python3=3.13.5-1
tar=1.35+dfsg-3.1
util-linux=2.41.5-0+deb13u1
xz-utils=5.8.1-1+deb13u2
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1
debootstrap=1.0.141
bison=2:3.8.2+dfsg-1+b2
ninja-build=1.12.1-1
xxd=2:9.1.1230-2+deb13u2
zip=3.0-15+deb13u1
PACKAGES
bwrap --ro-bind / / -- /usr/bin/true

The v29 Windows installer also has a shorter, independent recipe at the end of this page. For the full walkthrough, run the remaining command blocks in order in the same Bash session. Expand the code panels to copy them. The only other downloads are the Git checkouts and the archives requested and checksummed by their own depends recipes.

Pin the source trees

set -euo pipefail
export LC_ALL=C TZ=UTC
umask 022
# Use a new directory. Keep this Bash session for the remaining blocks.
lab="$PWD/bc3-rebuild"
mkdir "$lab"
cd "$lab"
jobs=4
git clone --branch main --single-branch https://github.com/PinkStarrySky/BitcoinIII-Core.git github
git clone --branch main --single-branch https://gitlab.com/bitcoiniii/bitcoiniii-core.git gitlab

may=f5c9d0e06cec52f04a02928654cf579a456e467b
june=9a63e1a7add399e6974f152baa348246c2121773
oct=98e43ae12e7a0044f87fdf22a827666623249d2a
test "$(git -C github rev-parse 'v29.1.0^{commit}')" = 3642f04582e1e1ca47dab07015d495f55af35f1e
test "$(git -C github rev-list --count v29.1.0.."$may")" = 3
test "$(git -C github rev-parse 'v29.1.1^{commit}')" = "$june"
test "$(git -C gitlab rev-parse 'v31.1.3^{commit}')" = "$oct"
git -C github merge-base --is-ancestor "$may" origin/main
git -C github merge-base --is-ancestor "$june" origin/main
git -C gitlab merge-base --is-ancestor "$oct" origin/main

Each build uses a private checkout. The clean environment removes inherited compiler flags, fixes the locale and time zone, and gives each process a writable temporary directory. If you interrupt a build, call its function again with the same arguments to reuse its checkout and build products.

# A private checkout per release/target keeps CMake and depends caches distinct.
checkout() {
  local repo=$1 commit=$2 dest=$3
  if [[ ! -e "$dest" ]]; then
    git clone --quiet --no-checkout "$repo" "$dest"
    git -C "$dest" checkout --quiet --detach "$commit"
  fi
  test "$(git -C "$dest" rev-parse HEAD)" = "$commit"
  git -C "$dest" diff --quiet HEAD --
}

# Run a command at the path embedded by the compiler and by Qt.
# src, prefix, locale and rootfs are local variables of the calling function.
inside() {
  local tool
  local -a mime_options=()
  # Qt's optional XMLStarlet minifier changes the MIME database. Preserve the
  # release input XML even on machines where that utility is installed.
  if [[ ${version:-} == v31.1.3 ]]; then
    for tool in /usr/bin/xmlstarlet /usr/bin/xml; do
      if [[ -x "$rootfs$tool" ]]; then mime_options+=(--ro-bind "$rootfs/usr/bin/false" "$tool"); fi
    done
  fi
  env -i PATH=/usr/bin:/bin TZ=UTC LC_ALL="$locale" \
    bwrap --die-with-parent --ro-bind "$rootfs" / --dev /dev --proc /proc \
    "${mime_options[@]}" --tmpfs /tmp --tmpfs /home --dir "${prefix%/*}" --bind "$src" "$prefix" \
    --setenv HOME /tmp --setenv BITCOINIII_GENBUILD_NO_GIT 1 --setenv BITCOIN_GENBUILD_NO_GIT 1 \
    --chdir "$prefix" -- "$@"
}

# A generated NSIS script names its inputs by their absolute namespace paths.
installer() {
  local release=$1 build=$2 targetname=$3 hash=$4
  python3 "$lab/finish.py" "$release" setup "$src/$build/bin" "$src/$build/release"
  inside bash -ec 'cd "$1"; makensis -V2 bitcoinIII-win64-setup.nsi' bash "$build"
  mkdir -p "$lab/results/$release"
  cp "$src/$build/bitcoinIII-win64-setup.exe" "$lab/results/$release/$targetname"
  (cd "$lab/results/$release" && echo "$hash  $targetname" | sha256sum -c)
}

Record the metadata and target hashes

Run both table blocks and the finalizer block once, in the build directory created above. Each row ends with the expected SHA-256 of a complete executable. The tables make the constants available before any binary has been built.

For ELF, the fourth column says whether to keep the compiler comment. The next column is the 20-byte descriptor from the GNU build-ID note. GNU strip removes debug information and symbols. The finalizer then restores the descriptor. The v31 GUI also carries the nested timestamp described below.

Create the Linux ELF table
cat > elf.txt <<'ELF'
v29.1.0 x86_64-pc-linux-gnu bitcoinIII-cli 0 2d5c11903db06806c03df5817a30f79fb8b7145c 19ef4f1c68d91b3420eb2a0c9513315307e8f3664b0954429c0bc103d83de263
v29.1.0 x86_64-pc-linux-gnu bitcoinIII-qt 0 7afde656251e2351b0df04d51ad1973e73907bbc 18aa30e1a482c41ee52f15eb3a25a17e87f7ce2b7e0450bac81483741ac4cbd2
v29.1.0 x86_64-pc-linux-gnu bitcoinIII-tx 0 22ffa0d520fe7cdbfbf0483c0a7d06855cf4e396 0b397d2cbefc53204033912d807fc27e987d1713a704ff9e065db98c60ac9798
v29.1.0 x86_64-pc-linux-gnu bitcoinIII-util 0 44dccbf2e6abc6c08070e8976afbebc0a4016eed 1842652118cb4f479ee04769e2d09d9fb82cb8912e0bc07a51b1787ab4ee3d34
v29.1.0 x86_64-pc-linux-gnu bitcoinIII-wallet 0 a8f40fdb9cf0fc82f87fd1e15507cd96b8736c66 c116625762b46717c410df6e8d861041276dae0a37964cb53b2d2a70b07a83fe
v29.1.0 x86_64-pc-linux-gnu bitcoinIIId 0 f41e5ed3482e788295bc3ed83b025b9efbff28fd 62cbfea95ef1dae426efb8eefb14d383794824d5ea7b286a004e840e8d9c4e53
v29.1.0 x86_64-pc-linux-gnu test_bitcoinIII 0 7129e195e67ce8427fcf1792993bbb7cab21c4ae b812b32406f17982f262a73f3275e7f278a631f98b7495aa92a8c66a8f5ebbd6
v29.1.0 x86_64-pc-linux-gnu test_bitcoinIII-qt 0 1a4e01029869389bc4773104b1a416c3b5bd6949 2a7108c67b08b584848efdf828db9f8d4a9b5a04f685efbdfd51c0fb452f2d22
v29.1.1 x86_64-pc-linux-gnu bitcoinIII-cli 1 75ba7dc032481543db265fdcb298d1d2c8898186 a701e145e81c05a47c123aa0ab4564b1f93e43ef111299fad14a2411504ecc14
v29.1.1 x86_64-pc-linux-gnu bitcoinIII-qt 1 30a23a511edce027c7b052acfe9d09e18fdfe0d5 2205d5029a80cb6b98ff50758dc20155c302548066f29913825e7591c176d51f
v29.1.1 x86_64-pc-linux-gnu bitcoinIII-tx 1 c70f76fe99411ee132a35159369da20ca6f4b758 d8a8614086aa5a26a0026e6778ba24e79b2ea6681f0be4f4915d30509a679dd9
v29.1.1 x86_64-pc-linux-gnu bitcoinIII-util 1 f7c9acf10e077e2ac206e6d29e7314b0dd33b47b b14e05bca602da44d1b1270e647ad21d6dcd50ab80954f5dccf8a8fcf1e250ee
v29.1.1 x86_64-pc-linux-gnu bitcoinIII-wallet 1 eb3b77e47bbcc965a5a480e3bc642522e918ccca 7d2a20d4e50589440dad7a9d85c112a0c8f664fedc358062dc54baface5291b2
v29.1.1 x86_64-pc-linux-gnu bitcoinIIId 1 0f862a43c64a753b0d4486d464540c7016b2c3b5 c78840c386d38340f065088a96297bcb0598b87fad28dbb79848b0dae12b1d7c
v29.1.1 x86_64-pc-linux-gnu test_bitcoinIII 1 f74dacc5dda3d866c55e4c2d58244f3941581d2c 278a2ded2365be9f9e84d1fe23ff1fe1c4841cabac7a31c23525a31bb80d9569
v29.1.1 x86_64-pc-linux-gnu test_bitcoinIII-qt 1 185226002b33840c1140bc1e8daa9599e82b7b2c 4b017d314e809f323364db33e7b984a4d4dca8328f705f7c6f235a217171ccbd
v29.1.1 aarch64-linux-gnu bitcoinIII-cli 1 4896afe359d8046133a7d1973177a7f512710f09 69d006b3b3558e4b505dd4a755180801bab19cef6af4fb0706a358c19c6e5410
v29.1.1 aarch64-linux-gnu bitcoinIII-qt 1 34d3e49441143ace200a8b1a9d7a9f0fb5e706ba e781f895171a86c207b1764d6d356e0a572a0c84924fa5c720ac280ee81f47e9
v29.1.1 aarch64-linux-gnu bitcoinIII-tx 1 475cada44c4e29fa622933b14a5c06b8e8e38476 b0d7d6299afb3c9b1ddbe8b0b1e507720990e71e3503fa77d940c5f026075ba3
v29.1.1 aarch64-linux-gnu bitcoinIII-util 1 6fa6282ac57f840234da2f48d1298673744aeadb 3869d8c412d7207ddb1320e5da2237b54078639b777494cec22adba89b930a25
v29.1.1 aarch64-linux-gnu bitcoinIII-wallet 1 f115728d96d446f2f9f14164f6c457c1fb34fffd 33631e76c3f4a36d9f111cf94d50baf77e71b1f5357d1ec73bcb17b15ac4654f
v29.1.1 aarch64-linux-gnu bitcoinIIId 1 1380635f35e3aedc65239d4002beebe6b3865486 8b3eb15f687d7bdf668c6fbf48634d1868943943e7514156796bd125de11b3e8
v29.1.1 aarch64-linux-gnu test_bitcoinIII 1 683dee04c3adb93b3d021b6ff70d229b1b5d6571 abba8cb17d63b6a7b356839a539c5684e1c25f4ab6e685447ed54445a5c47512
v29.1.1 aarch64-linux-gnu test_bitcoinIII-qt 1 01a5e3fd5a2a246ad73740a6bfaaaf7dfbcc86fe 7172f586246e4c0279092ba0746b52b58c02730a5f32dea2fae98201ae9e2edc
v31.1.3 x86_64-pc-linux-gnu bitcoinIII 0 4285b4336efbef63372d75a32c89a6e765dc8809 9883f7a1b6f9e155076c208c343cd11a5cb37fdeefd687339c8572b34db1b222
v31.1.3 x86_64-pc-linux-gnu bitcoinIII-cli 0 279738baf5af0c0f05df20660e2820b22e7f3758 800b078c8cfdf1430dc4e184234f026d77091c3d629f7d5bb01afeaff6b60e64
v31.1.3 x86_64-pc-linux-gnu bitcoinIII-qt 0 6933336ae7f06d3ee5ba904453a83e869c24a6ce 594e6418471a59b1cf9f5a082dd5dbad89921d86eab677d64e024ab76cabb29d
v31.1.3 x86_64-pc-linux-gnu bitcoinIII-tx 0 88220669e7c41a2143f1d3ad93823bad4f08e6c7 62ff576eda494a5db30ec0ac383e0a9f3b41fcae7f5a5681874b53b47b2634a4
v31.1.3 x86_64-pc-linux-gnu bitcoinIII-util 0 6fb802bb5f2ce598588ef74fbd3f3adcd7dd65fc 80bc96f3ea32ae4f725152a03dd9fc01537a365a7afad473ed5f3a6569baf6f8
v31.1.3 x86_64-pc-linux-gnu bitcoinIII-wallet 0 ec1f22677af832906b2cd6578502dbddad036e50 e9fb6f49e311fbeb78f82a920688151a78822740bf9fc3ee56ffc1890e63f3d4
v31.1.3 x86_64-pc-linux-gnu bitcoinIIId 0 8bde0d4b3119a9924062e7b37fff1a2e8f0f5f53 bf41c4b84092143878a545f1ca7d7abcad25174a151f20fc7df44b9ad6bdf970
v31.1.3 aarch64-linux-gnu bitcoinIII 1 fc97cd0bebd036db18bf1dafb61ceef70a32ceb3 7ac4a751afbf23046483d240e7bf14e034b32c87d091422f45c756d4e87d488c
v31.1.3 aarch64-linux-gnu bitcoinIII-cli 1 8f5208f6c965d185e1c8e60499d9b9731e3fc4d5 9ea08a6474344755bf3acb2affef6484a4c160d29f8d6d3fc645c90c0113c918
v31.1.3 aarch64-linux-gnu bitcoinIII-qt 1 e867a429c42eaa49f5260a48b63c4aa02be92d55 3324cc80c1efa64567001e564e6f42aa6461399c7b465ab7f54b2d1c25abeb0a
v31.1.3 aarch64-linux-gnu bitcoinIII-tx 1 deca6b2c74402637d50747f275c944cc2f89ff81 88446da603a249eb61d1fe243914dae2da79bac02d98e05692af6efdb575d88d
v31.1.3 aarch64-linux-gnu bitcoinIII-util 1 d9baa29285beac37a88a7188997b9c5d8fbc5e30 b21d2deaced979b23daaec23af4c3f2dd5583f76f80a075192e7828cdc68df6a
v31.1.3 aarch64-linux-gnu bitcoinIII-wallet 1 095e6158a1dc90319fe08e612c981efd76a34eb6 89681006e4507ce385ae829d30e4613cbb794826e91d0522df729d4e425b09e5
v31.1.3 aarch64-linux-gnu bitcoinIIId 1 394fac2ff8b5224acdc155f0e51b4e1fcfe83562 e12388ece6b8431ded6cb870b3917084c0462d4cc8ff257c27f46ccf1925c610
ELF

For PE, each decimal file offset is followed by four bytes in file order. The first pair specifies the COFF TimeDateStamp, the second the OptionalHeader.CheckSum, and the third, where present, the export-directory TimeDateStamp. The code checks the PE32+ headers, the flags on the export section and the position of each field. Five v29.1.0 files carry stored PE checksums that differ from a fresh checksum calculation. The table preserves their recorded values.

Create the Windows PE table
cat > pe.txt <<'PE'
v29.1.0 zip bitcoinIII-cli.exe 136:efdaff69 216:a8482400 2292740:7bc8ff69 a422f9231137cf6a4f547103a5d92d49f4c831ff498fa32d829951952675b5ce
v29.1.0 zip bitcoinIII-qt.exe 136:efdaff69 216:f6fe8002 41513988:8bc9ff69 5a7a792894b08134a2c1b78e2ebd2b3779b0d0b1523b1b39439929a12315125b
v29.1.0 zip bitcoinIII-tx.exe 136:efdaff69 216:a6ab4000 4160004:81c8ff69 03c5000405cf09c4ac4764de46e826e07e9ecf88a27b89e72d535af6513f9148
v29.1.0 zip bitcoinIII-util.exe 136:efdaff69 216:84441e00 1920004:85c8ff69 ac44f82ecf1ca4783187d70cfd869cbae6a4f36f4a91cb9f64ad11903becc01a
v29.1.0 zip bitcoinIII-wallet.exe 136:efdaff69 216:ef209800 9874436:81c8ff69 bc0c933b17f05a280089611340cf6c50ac7e3c45f0f831ba1abfa0550d9ac5ae
v29.1.0 zip bitcoinIIId.exe 136:efdaff69 216:a377f500 16019972:8dc8ff69 b48388475aa6c229150967f758a95104bd8ffeadba29dd517cd16a624ac66b00
v29.1.0 zip test_bitcoinIII-qt.exe 136:f0daff69 216:0f348502 b9a38311fc23e6df8b99a57c886ea49461f3306c5194a1c86bfe34d596215493
v29.1.0 zip test_bitcoinIII.exe 136:efdaff69 216:ebbeaa01 27897348:9bcaff69 24bfaa5d9febf6a9ad07370dc69696799a03dced09558c90ca45e4d4e8590da6
v29.1.1 zip bitcoinIII-cli.exe 136:45d22f6a 216:b4392400 2292740:99bd2e6a fff7715a9665e53ad4e3b5f65da0152eebaaad45e7f374acdaedea0ebdec6999
v29.1.1 zip bitcoinIII-qt.exe 136:46d22f6a 216:3ac77402 40783364:02be2e6a cb66759cb5af776dbb3dfd13b942826d0004825066282a8f8c9c87a51e273b89
v29.1.1 zip bitcoinIII-tx.exe 136:45d22f6a 216:e0094000 4162052:9dbd2e6a f52703000424715a41f452d1e441710b1f32c28195b748d48e671f651f661528
v29.1.1 zip bitcoinIII-util.exe 136:45d22f6a 216:9a0b1e00 1921540:9bbd2e6a 52535375f5fed7420c6616e1d28c4de69c8e84ada87e2336dab692d63c5442f8
v29.1.1 zip bitcoinIII-wallet.exe 136:44d22f6a 216:81c69700 9875460:9fbd2e6a 613eea2aca1a0d1c15d0a246d699b9d2450591988f02526a7f158bc2c3cfd550
v29.1.1 zip bitcoinIIId.exe 136:45d22f6a 216:2cacf500 16020996:f1bd2e6a f9aaced933ce525e52e423f172568814e241a6b3aa761af234593c1fc4442306
v29.1.1 zip test_bitcoinIII-qt.exe 136:47d22f6a 216:14587902 4591dadceafad96a5ad92d1cf0f8ceeceffdfb73fa8a582f4c78f8323a076680
v29.1.1 zip test_bitcoinIII.exe 136:48d22f6a 216:aeceaa01 27897860:8bbe2e6a 55c43786314f55a3988c5286b5e7665db55003bd15708990bb29497b422d491a
v29.1.1 setup bitcoinIII-qt.exe 136:7dd22f6a 216:71c77402 40783364:02be2e6a f573bb9cd77dc833a0f64d92235ed82a6f6ef2ba0cf11d0d6053c8ece8cb8b8e
v29.1.1 setup bitcoinIIId.exe 136:7dd22f6a 216:64acf500 16020996:f1bd2e6a 9818de931db78e9679eef8126ede48905608724c5f32ccc54536d9f41db6d864
v29.1.1 setup bitcoinIII-cli.exe 136:7dd22f6a 216:ec392400 2292740:99bd2e6a 5323904cb6a83d87ce3fd4bb2d80bf14a81ddeb4e666c44d83f20bf25656d302
v29.1.1 setup bitcoinIII-tx.exe 136:7dd22f6a 216:180a4000 4162052:9dbd2e6a 2380db890b4afa21827c7f83a025bb933c9838fb32b8f96c97b6b6b6a67849ee
v29.1.1 setup bitcoinIII-wallet.exe 136:7dd22f6a 216:bac69700 9875460:9fbd2e6a e0acf5d52218aab32df01a24324685799c7f038ba6c748273bc59c67e9ebc87a
v29.1.1 setup test_bitcoinIII.exe 136:7dd22f6a 216:e3ceaa01 27897860:8bbe2e6a be9eef2d83a51fcdc33f3b1c40d1e5232af21f99518bcd5a5f3664857a963ee1
v31.1.3 zip bitcoinIII-cli.exe 136:2573d26a 216:d4052400 2310148:7c5bd26a 828d7f93232fe916fc87f90894e649ea0fda6f7d0f2e9b8c98a98374e3f44ed2
v31.1.3 zip bitcoinIII-qt.exe 136:2673d26a 216:938d9e02 43434500:be5cd26a 12fb784f8b5fdfabcc075a29c0bf693d2c267b83745e260e13c175bb61216e5d
v31.1.3 zip bitcoinIII-tx.exe 136:2573d26a 216:fde74400 4462596:7e5bd26a e2505f5b839f604bbae88dc57074be7b9f456bd1c61b60901e62415ce1b29370
v31.1.3 zip bitcoinIII-util.exe 136:2573d26a 216:8c7b3f00 4083716:7f5bd26a 779275ad5a33155ef8ff6045262cad69b3f0c61def4db8e42e5cee7051448a56
v31.1.3 zip bitcoinIII-wallet.exe 136:2473d26a 216:c2208600 8757764:785bd26a 8c390a2becdd44ae299dcc6d39d7892671546b6932a34615429fc657fd0fbb79
v31.1.3 zip bitcoinIII.exe 136:2473d26a 216:c1b61900 68b726f331e9e9eaee0df402c61b2e4a997fc1918704a6dcbc572285f48d9cc9
v31.1.3 zip bitcoinIIId.exe 136:2573d26a 216:480e0201 16834052:305cd26a 39ba7d4ce88153104eb970938292df7b48f162873d8bc54c464e576c73b25c4c
v31.1.3 setup bitcoinIII-cli.exe 136:3179d26a 216:e00b2400 2310148:7c5bd26a 0eac6b1dc47ded4de6e3a4fa79a39d5b8e425682efcc134b3cf745e8176de0f3
v31.1.3 setup bitcoinIII-qt.exe 136:3179d26a 216:9f939d02 43434500:be5cd26a 946817f30c934260475433126274e7c48269980684dfbb916cb8eaca7f375ada
v31.1.3 setup bitcoinIII-tx.exe 136:3179d26a 216:09ee4400 4462596:7e5bd26a 18e05020fe797010b77c3862a8fa6a28fa1b6f2290e123d56d1d599c937cdabe
v31.1.3 setup bitcoinIII-wallet.exe 136:3179d26a 216:cf268600 8757764:785bd26a 8481c17b7188a9961db8d9aa31b3d7a70d869aabc96b4abb08e6a6f35218f0a5
v31.1.3 setup bitcoinIII.exe 136:3079d26a 216:cdbc1900 98becc2057af4620179beab7812f2cf501abb3f2b28e3390b32381739d7010d5
v31.1.3 setup bitcoinIIId.exe 136:3179d26a 216:54140201 16834052:305cd26a 86df656394dadffc80857ead07d58e06cef20966aac41a07c69efac97c3659c1
v31.1.3 setup test_bitcoin.exe 136:3179d26a 216:87b6d201 30464004:2b5ed26a 35186b36cfc05735e4a113f66baaaba10398611cdac69b7dade8037401230bcf
PE

The v31 GUI on each platform embeds a gzip-compressed Qt MIME database in the read-only .qtmimedatabase section. Qt 6.8.3 generates it with CMake. The gzip header stores a four-byte modification time at offset 4 within that stream. Its compressed data and the 304,084-byte XML document can already be verified independently. The finalizer checks the section flags, offset, gzip header and SHA-256 of the decompressed XML before setting those four bytes. The Windows v31 GUI therefore has up to 16 metadata bytes to restore. The six programs in the v29.1.1 installer each use 12.

The finalizer reads from the compiler output directory. It strips a temporary copy, validates its metadata locations and checks its SHA-256 before promoting it to the results directory. The PE writes set identification and integrity fields outside the instruction sections. A mismatch prints the file name and returns a failing exit status. The linked binary stays available for inspection.

Create the checked finalizer
cat > finish.py <<'PY'
"""Strip a source build, restore documented metadata, and check each whole file."""
import hashlib
from pathlib import Path
import struct
import subprocess
import sys
import tempfile
import zlib

version, target, binary_dir, output_dir = sys.argv[1:]
here = Path(__file__).resolve().parent
dest = Path(output_dir)
dest.mkdir(parents=True, exist_ok=True)
windows = target in ("zip", "setup")
table = here / ("pe.txt" if windows else "elf.txt")
prefix = "x86_64-w64-mingw32-" if windows else (
    "aarch64-linux-gnu-" if target == "aarch64-linux-gnu" else "")


def restore_pe(data, fields):
    def u16(i):
        return struct.unpack_from("<H", data, i)[0]

    def u32(i):
        return struct.unpack_from("<I", data, i)[0]

    pe = u32(60)
    opt = pe + 24
    if (data[:2] != b"MZ" or data[pe:pe+4] != b"PE\0\0" or
            u16(pe+4) != 0x8664 or u16(opt) != 0x20b):
        raise ValueError("expected AMD64 PE32+")
    offsets = [pe+8, opt+64]
    export, size = struct.unpack_from("<II", data, opt+112)
    if export:
        first = opt + u16(pe+20)
        for i in range(u16(pe+6)):
            s = first + 40*i
            rva, rawsize, raw = struct.unpack_from("<III", data, s+12)
            if rva <= export and export + size <= rva + rawsize and size >= 40:
                if data[s:s+8] != b".edata\0\0" or u32(s+36) & 0x20000020:
                    raise ValueError("unexpected export section or flags")
                offsets.append(raw + export - rva + 4)
                break
        else:
            raise ValueError("missing export directory")
    for offset, field in zip(offsets, fields, strict=True):
        recorded, hexbytes = field.split(":")
        value = bytes.fromhex(hexbytes)
        if int(recorded) != offset or len(value) != 4 or offset+4 > len(data):
            raise ValueError("unexpected PE field offset or length")
        data[offset:offset+4] = value


def restore_elf(data, build_id):
    if data[:6] != b"\x7fELF\x02\x01":
        raise ValueError("expected little-endian ELF64")
    start, = struct.unpack_from("<Q", data, 40)
    stride, count, strings = struct.unpack_from("<HHH", data, 58)
    names, = struct.unpack_from("<Q", data, start + strings * stride + 24)
    for i in range(count):
        s = start + i * stride
        name, kind, flags, _, offset, size = struct.unpack_from("<IIQQQQ", data, s)
        if data.startswith(b".note.gnu.build-id\0", names + name):
            header = struct.pack("<III4s", 4, 20, 3, b"GNU\0")
            if (kind != 7 or flags & 4 or size != 36 or
                    data[offset:offset+16] != header or len(build_id) != 20):
                raise ValueError("unexpected GNU build-ID note")
            data[offset+16:offset+36] = build_id
            return
    raise ValueError("missing GNU build-ID note")


# Offset of gzip MTIME and its little-endian bytes in each v31 GUI.
qt_times = {
    "zip": (41186820, "9954d26a"),
    "setup": (41186820, "9954d26a"),
    "aarch64-linux-gnu": (36761604, "4d7dd26a"),
    "x86_64-pc-linux-gnu": (37126148, "f961d16a"),
}


def restore_qt_time(data, candidate):
    offset, timestamp = qt_times[target]
    lines = subprocess.check_output([prefix+"objdump", "-h", candidate],
                                    text=True).splitlines()
    for i, line in enumerate(lines):
        columns = line.split()
        if len(columns) < 7 or columns[1] != ".qtmimedatabase":
            continue
        start = int(columns[5], 16)
        size = int(columns[2], 16)
        flags = {s.strip() for s in lines[i+1].split(",")}
        if start+4 != offset or not {"READONLY", "DATA"} <= flags or "CODE" in flags:
            raise ValueError("unexpected Qt MIME database layout")
        section = data[start:start+size]
        if section[:4] != bytes.fromhex("1f8b0800"):
            raise ValueError("unexpected embedded gzip header")
        xml = zlib.decompress(section, wbits=31)
        if hashlib.sha256(xml).hexdigest() != (
                "2d5106ce5d86e8dc64411d8a6248520c8093f9f1cf7d86e6c4f4a4c0af40150b"):
            raise ValueError("Qt MIME database content differs")
        data[offset:offset+4] = bytes.fromhex(timestamp)
        return
    raise ValueError("missing Qt MIME database")


rows = [line.split()[2:] for line in table.read_text().splitlines()
        if line.split()[:2] == [version, target]]
if not rows:
    sys.exit(f"No records for {version} {target}")
failed = False
with tempfile.TemporaryDirectory(dir=dest) as tmp:
    for name, *fields, expected in rows:
        try:
            flags = ["--remove-section=.comment"] if not windows and fields[0] == "0" else []
            candidate = Path(tmp) / name
            subprocess.run([prefix+"strip", "--strip-all", *flags, "-o", candidate,
                            Path(binary_dir) / name], check=True)
            data = bytearray(candidate.read_bytes())
            if version == "v31.1.3" and name in ("bitcoinIII-qt", "bitcoinIII-qt.exe"):
                restore_qt_time(data, candidate)
            if windows:
                restore_pe(data, fields)
            else:
                restore_elf(data, bytes.fromhex(fields[1]))
            actual = hashlib.sha256(data).hexdigest()
            if actual != expected:
                raise ValueError(f"{actual}, expected {expected}")
            candidate.write_bytes(data)
            candidate.replace(dest / name)
            print(f"{actual}  {name}")
        except (ValueError, OSError, subprocess.CalledProcessError) as error:
            print(f"{version} {target} {name}: {error}", file=sys.stderr)
            failed = True
sys.exit(int(failed))
PY

Build the five v29 target sets

Build eight programs for each target, including the GUI and both test executables. The depends recipes pin the library sources, including Qt 5.15.16, Boost 1.81.0, Berkeley DB 4.8.30.NC and SQLite 3.46.1. The built-in depends mirror supplied the older Qt archives when the primary URLs returned HTTP 404. Fetching with an empty cache verified all 23 v29 dependency source archives. The Linux builds use the generated parser shipped in the libxkbcommon archive. The native ZeroMQ build sets the five socket capabilities used by the release, which also makes its result independent of socket probes on the build host.

Use Release on x86-64 and Windows. Use RelWithDebInfo on AArch64. Debug sections influence the GNU linker's ordering of Cortex-A53 erratum branch stubs, even though strip removes those sections from the final executable. Each build uses the historical path shown in the commands. The June installer uses six executables with their own strip timestamps.

build29() (
  set -e
  local version=$1 host=$2 commit=$june prefix=/home/dude/BitcoinIII-Core
  local rootfs=/ locale=C build=build config=Release
  local src="$lab/$version-$host"
  local -a opts=() names=(bitcoinIII-cli bitcoinIII-qt bitcoinIII-tx bitcoinIII-util
                          bitcoinIII-wallet bitcoinIIId test_bitcoinIII test_bitcoinIII-qt)
  if [[ $version == v29.1.0 ]]; then
    commit=$may
    prefix=/home/john/BitcoinIII-Core
    if [[ $host == x86_64-w64-mingw32 ]]; then prefix=/home/john/winbins/BitcoinIII-Core; fi
  fi
  checkout "$lab/github" "$commit" "$src"
  if [[ $host == x86_64-w64-mingw32 ]]; then
    locale=C.UTF-8
  else
    opts+=('libxkbcommon_build_cmds=$(MAKE) src/.dirstamp src/xkbcomp/.dirstamp && touch src/xkbcomp/parser.c src/xkbcomp/parser.h && $(MAKE)')
  fi
  if [[ $host == x86_64-pc-linux-gnu ]]; then
    opts+=('zeromq_config_opts_linux=-DZMQ_HAVE_SOCK_CLOEXEC=1 -DZMQ_HAVE_SO_KEEPALIVE=1 -DZMQ_HAVE_TCP_KEEPCNT=1 -DZMQ_HAVE_TCP_KEEPIDLE=1 -DZMQ_HAVE_TCP_KEEPINTVL=1')
  fi
  if [[ $host == aarch64-linux-gnu ]]; then build=build-aarch64; config=RelWithDebInfo; fi
  inside make -j"$jobs" -C depends HOST="$host" "${opts[@]}"
  inside cmake -G 'Unix Makefiles' -S . -B "$build" --toolchain "$prefix/depends/$host/toolchain.cmake" \
      -DCMAKE_BUILD_TYPE="$config" -DWITH_CCACHE=OFF -DCMAKE_CXX_LINKER_LAUNCHER=
  inside cmake --build "$build" --parallel "$jobs" --target "${names[@]}"
  local variant=$host
  if [[ $host == x86_64-w64-mingw32 ]]; then variant=zip; fi
  python3 "$lab/finish.py" "$version" "$variant" "$src/$build/bin" "$lab/results/$version/$host"
  if [[ $version == v29.1.1 && $variant == zip ]]; then
    installer "$version" "$build" BitcoinIII-Core-v29.1.1-win64-setup.exe \
        4d3761e149e5fcffaabf1064c3deca56c6a63fb3c8352b240fbac219d6e4a6e9
  fi
)

build29 v29.1.0 x86_64-pc-linux-gnu
build29 v29.1.0 x86_64-w64-mingw32
build29 v29.1.1 x86_64-pc-linux-gnu
build29 v29.1.1 aarch64-linux-gnu
build29 v29.1.1 x86_64-w64-mingw32

Build v31.1.3

The three target sets contain seven programs each. The Windows ZIP includes the utility, and the installer includes test_bitcoin.exe. Six program names occur in both. The two distributions carry different COFF strip timestamps and PE checksum fields.

Use Debian 13 for Windows and the AArch64 cross build. For x86-64, set up this Debian 12 build root on the same host. A native Debian 13 control produced a wrapper of 1,921,792 bytes, against the released 1,757,824 bytes. Its larger machine-code section and its import of __isoc23_strtoul@GLIBC_2.38 survive stripping. The Debian 12 build uses GCC 12 and glibc 2.36. The tag accepts both GCC versions.

# Run on the Debian 13 amd64 host, once. This installs a separate Debian 12
# userspace beneath the build directory. Bubblewrap mounts it read-only.
bookworm="$lab/bookworm"
sudo debootstrap --arch=amd64 --variant=minbase \
  --include=build-essential,cmake,ninja-build,pkg-config,bison,xz-utils,python3,patch,curl,git,ca-certificates,autoconf,automake,libtool,libzstd-dev,zlib1g-dev,libkrb5-dev,bzip2,file \
  bookworm "$bookworm" https://deb.debian.org/debian

The Bookworm test root reported Debian 12.15. Its compiler and runtime packages were g++-12=12.2.0-14+deb12u1, libstdc++-12-dev=12.2.0-14+deb12u1, binutils=2.40-2 and libc6-dev=2.36-9+deb12u14. CMake was 3.25.1-1 and GNU tar was 1.34+dfsg-1.2+deb12u1. To recreate the build root after the mirror advances, substitute https://snapshot.debian.org/archive/debian/20261202T000000Z/ for the final mirror argument above.

With v31 the CMake target names retain the upstream spelling. For example, building bitcoind emits bitcoinIIId. The release uses Qt 6.8.3 and Boost 1.90.0. Linux links libstdc++ and libgcc statically. Install the Linux targets into a staging directory before stripping. The CMake install rule removes the GUI build-tree library search path and yields the released dynamic table. The AArch64 cross build takes the ZeroMQ defaults for that host. The helper uses the target-specific source paths found in the release files.

build31() (
  set -e
  local version=v31.1.3 host=$1 src="$lab/v31.1.3-$1"
  local prefix=/home/linuxuser/BitcoinIII-Core locale=C.UTF-8 rootfs=/ build=build config=Release
  local variant=$host
  local -a dep=(NO_IPC=1) flags=() targets=(bitcoin bitcoin-cli bitcoin-tx bitcoin-util bitcoin-wallet bitcoind bitcoin-qt)
  checkout "$lab/gitlab" "$oct" "$src"
  if [[ $host == x86_64-w64-mingw32 ]]; then
    variant=zip
    targets+=(test_bitcoin)
  else
    locale=C
    flags+=('-DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++ -static-libgcc')
    if [[ $host == aarch64-linux-gnu ]]; then
      build=build-aarch64
      config=RelWithDebInfo
    else
      dep+=('zeromq_config_opts_linux=-DZMQ_HAVE_SOCK_CLOEXEC=1 -DZMQ_HAVE_SO_KEEPALIVE=1 -DZMQ_HAVE_TCP_KEEPCNT=1 -DZMQ_HAVE_TCP_KEEPIDLE=1 -DZMQ_HAVE_TCP_KEEPINTVL=1')
      rootfs=$bookworm
      prefix=/home/bc3/dev/bitcoiniii-core
    fi
  fi
  inside make -j"$jobs" -C depends HOST="$host" "${dep[@]}"
  inside cmake -G 'Unix Makefiles' -S . -B "$build" --toolchain "$prefix/depends/$host/toolchain.cmake" \
      -DCMAKE_BUILD_TYPE="$config" -DWITH_CCACHE=OFF -DCMAKE_CXX_LINKER_LAUNCHER= "${flags[@]}"
  inside cmake --build "$build" --parallel "$jobs" --target "${targets[@]}"
  local linked="$src/$build/bin"
  if [[ $variant != zip ]]; then
    for target in "${targets[@]}"; do
      inside cmake --install "$build" --prefix "$prefix/stage" --component "$target"
    done
    linked="$src/stage/bin"
  fi
  python3 "$lab/finish.py" "$version" "$variant" "$linked" "$lab/results/$version/$host"
  if [[ $variant == zip ]]; then
    installer "$version" "$build" bitcoinIII-core-v31.1.3-win64-setup.exe \
      f9289d372db9ff2e4f93030e642fe9002ac0ffda6ffda851f88c7f50611d96da
  fi
)

build31 aarch64-linux-gnu
build31 x86_64-w64-mingw32
build31 x86_64-pc-linux-gnu

Recreate the v31 release containers

The manual pages come from the tag. The inner manifests use a different file order for each platform. For tar, the member names are sorted, ownership is numeric 0/0, and the timestamp is midnight UTC on January 1, 2026. Bookworm tar 1.34 and Trixie tar 1.35 encode unused ustar device fields differently. XZ uses a single compression thread and the extreme level-9 preset. Run these blocks after the executable checks pass.

Package both Linux tar.xz files
# Run after the corresponding Linux executable hashes pass.
linux_archive() (
  set -e
  export LC_ALL=C TZ=UTC
  umask 022
  local arch=$1 host=$2 v=bitcoinIII-core-v31.1.3-linux-$1
  local src="$lab/v31.1.3-$host" bins="$lab/results/v31.1.3/$host"
  local tmp
  tmp=$(mktemp -d "$lab/package-$arch.XXXXXXXX")
  cd "$tmp"
  mkdir -p "$v/bin" "$v/share/man/man1"
  for suffix in '' d -cli -qt -tx -util -wallet; do
    install -m755 "$bins/bitcoinIII$suffix" "$v/bin/"
    install -m644 "$src/doc/man/bitcoin$suffix.1" "$v/share/man/man1/bitcoinIII$suffix.1"
  done
  (
    cd "$v"
    if [[ $arch == aarch64 ]]; then
      sha256sum ./share/man/man1/bitcoinIII{d,-tx,-cli,,-wallet,-qt,-util}.1
      sha256sum ./bin/bitcoinIII{-cli,d,-tx,-util,,-qt,-wallet}
    else
      sha256sum ./bin/bitcoinIII{-tx,-cli,d,-util,,-wallet,-qt}
      sha256sum ./share/man/man1/bitcoinIII{,d,-wallet,-cli,-util,-qt,-tx}.1
    fi
  ) > "$v/SHA256SUMS"
  tarcmd=(tar)
  if [[ $arch == x86_64 ]]; then
    # Debian 12 tar encodes a regular file's ustar device fields differently.
    tarcmd=(bwrap --ro-bind "$bookworm" / --dev /dev --proc /proc
            --bind "$tmp" /mnt --chdir /mnt -- tar)
  fi
  "${tarcmd[@]}" --format=ustar --sort=name --owner=0 --group=0 --numeric-owner \
      --mtime=@1767225600 -cf - "$v" | xz -T1 -9e > "$lab/results/v31.1.3/$v.tar.xz"
)
linux_archive aarch64 aarch64-linux-gnu
linux_archive x86_64 x86_64-pc-linux-gnu
Package the Windows ZIP
(
  set -e
  export LC_ALL=C TZ=UTC
  umask 022
  host=x86_64-w64-mingw32
  src="$lab/v31.1.3-$host"
  bins="$lab/results/v31.1.3/$host"
  work=$(mktemp -d "$lab/package-win.XXXXXXXX")
  cd "$work"
  v=bitcoinIII-core-v31.1.3-win64
  mkdir -p "$v/bin" "$v/share/man/man1"
  mans=()
  for s in d -tx -cli '' -wallet -qt -util; do
    file="share/man/man1/bitcoinIII$s.1"
    install -m644 "$src/doc/man/bitcoin$s.1" "$v/$file"
    install -m755 "$bins/bitcoinIII$s.exe" "$v/bin/"
    mans+=("$file")
  done
  programs=(bin/bitcoinIII{d,-cli,-tx,,-wallet,-qt,-util}.exe)
  (cd "$v"; for f in "${mans[@]}" "${programs[@]}"; do sha256sum "./$f"; done) > "$v/SHA256SUMS"
  items=("${mans[@]}" SHA256SUMS "${programs[@]}")
  for f in "${items[@]}"; do touch -d @1767225600 "$v/$f"; done
  printf '%s\n' "${items[@]/#/$v/}" | zip -q -X -9 "$v.zip" -@
  mv "$v.zip" "$lab/results/v31.1.3/"
)
(cd "$lab/results/v31.1.3" && sha256sum -c <<'EXPECTED'
85b0ac39d406a16e696f63df97cc4555f4f368f6d67a32be8c549e48feec3271  bitcoinIII-core-v31.1.3-linux-aarch64.tar.xz
6e29a1ded9cc3025d52fc756516c4fd7b4846e611bce5d63f50b00c237db3049  bitcoinIII-core-v31.1.3-linux-x86_64.tar.xz
e2e3b0f20c78ba709a93f70f783ea0a269e172b34a8edde8df35c01492d5f3db  bitcoinIII-core-v31.1.3-win64.zip
f9289d372db9ff2e4f93030e642fe9002ac0ffda6ffda851f88c7f50611d96da  bitcoinIII-core-v31.1.3-win64-setup.exe
EXPECTED
)

Check a result independently

For example, the following commands compare the June GUI before and after the metadata edits. The v29 installer has a separately recorded strip time. Use the GUI from build/release for this check. The section dump tests code equality, and cmp -l reports every differing byte in the complete file with one-based byte positions. The field table uses zero-based offsets.

src="$lab/v29.1.1-x86_64-w64-mingw32"
exe=bitcoinIII-qt.exe
mkdir -p "$lab/audit"
x86_64-w64-mingw32-strip --strip-all -o "$lab/audit/raw.exe" "$src/build/bin/$exe"
for side in "$lab/audit/raw.exe" "$src/build/release/$exe"; do
  x86_64-w64-mingw32-objcopy --only-section=.text -O binary "$side" "$lab/audit/$(basename "$side").text"
done
cmp "$lab/audit/raw.exe.text" "$lab/audit/$exe.text"
x86_64-w64-mingw32-objdump -p -h "$src/build/release/$exe"
# cmp returns 1 for expected differences. Exit on an I/O error (status 2).
cmp -l "$lab/audit/raw.exe" "$src/build/release/$exe" || test "$?" -eq 1
sha256sum "$src/build/release/$exe"

In this comparison, every compiled .text section matched the corresponding release section before the historical metadata was set. For the six June installer payloads, the differing bytes fell within the three four-byte PE fields. A fresh strip can change how many positions differ. For the Linux v31 GUIs, the allowed positions comprise the 20-byte build ID and the four-byte gzip timestamp. Each file also passed a direct whole-file byte comparison after finalization.

If you already have the distributed installer, compare the two files directly with cmp. A successful comparison produces no output. You can also examine the Linux GNU build ID with readelf -n.

Standalone recipe for the June installer

This block starts in a fresh directory on Debian 13 amd64. It builds only the six payloads required by the tagged NSIS template. It uses Bash, the ordinary build tools and three fixed four-byte writes per program. The expected digest covers all 35,507,687 bytes of the installer.

# Run in Bash on Debian 13 amd64, in a directory with room for a fresh clone.
(
set -eu
sudo apt-get update
sudo apt-get install -y --no-install-recommends git ca-certificates curl build-essential \
  cmake=3.31.6-2 pkgconf patch perl python3 xz-utils bzip2 bubblewrap xxd \
  bison=2:3.8.2+dfsg-1+b2 \
  g++-mingw-w64-x86-64-posix=14.2.0-19+27+b1 binutils-mingw-w64-x86-64=2.44-3+12+b1 \
  mingw-w64-x86-64-dev=12.0.0-5 nsis=3.11-1 nsis-common=3.11-1
git clone --depth 1 --branch v29.1.1 https://github.com/PinkStarrySky/BitcoinIII-Core.git bc3-june
test "$(git -C bc3-june rev-parse HEAD)" = 9a63e1a7add399e6974f152baa348246c2121773

# Give Qt and the compiler the release's absolute paths in a private namespace.
src=/home/dude/BitcoinIII-Core
env -i PATH=/usr/bin:/bin LC_ALL=C.UTF-8 TZ=UTC HOME=/tmp BITCOINIII_GENBUILD_NO_GIT=1 \
  bwrap --ro-bind / / --dev /dev --proc /proc --tmpfs /tmp --tmpfs /home \
  --dir /home/dude --bind "$PWD/bc3-june" "$src" --chdir "$src" bash -se <<'BUILD'
set -o pipefail
host=x86_64-w64-mingw32
make -j4 -C depends HOST="$host"
cmake -S . -B build --toolchain "$PWD/depends/$host/toolchain.cmake" -G 'Unix Makefiles' \
  -DCMAKE_BUILD_TYPE=Release -DWITH_CCACHE=OFF -DCMAKE_CXX_LINKER_LAUNCHER=
cmake --build build -j4 --target bitcoinIII-qt bitcoinIIId bitcoinIII-cli bitcoinIII-tx bitcoinIII-wallet test_bitcoinIII

mkdir -p build/release
while read -r name checksum offset timestamp; do
  file=build/release/$name.exe
  "$host-strip" --strip-all -o "$file" "build/bin/$name.exe"
  printf '%08x: %s\n' 136 7dd22f6a 216 "$checksum" "$offset" "$timestamp" | xxd -r - "$file"
done <<'FIELDS'
bitcoinIII-qt     71c77402 40783364 02be2e6a
bitcoinIIId       64acf500 16020996 f1bd2e6a
bitcoinIII-cli    ec392400  2292740 99bd2e6a
bitcoinIII-tx     180a4000  4162052 9dbd2e6a
bitcoinIII-wallet bac69700  9875460 9fbd2e6a
test_bitcoinIII   e3ceaa01 27897860 8bbe2e6a
FIELDS

cd build
makensis -V2 bitcoinIII-win64-setup.nsi
mv bitcoinIII-win64-setup.exe BitcoinIII-Core-v29.1.1-win64-setup.exe
echo '4d3761e149e5fcffaabf1064c3deca56c6a63fb3c8352b240fbac219d6e4a6e9  BitcoinIII-Core-v29.1.1-win64-setup.exe' | sha256sum -c
BUILD
)

# The resulting installer is in bc3-june/build/. Each row sets three four-byte
# PE fields, using the listed bytes in file order. The decimal file offsets are
# 136 (COFF TimeDateStamp), 216 (OptionalHeader.CheckSum), and the row's offset
# (export-directory TimeDateStamp). The last field begins four bytes into the
# export directory in .edata. To inspect these fields, use the following:
# x86_64-w64-mingw32-objdump -p -h bc3-june/build/release/bitcoinIII-qt.exe

Release archive fingerprints

The per-program SHA-256 values are in the ELF and PE tables above. The entries below identify the supplied release containers, including the two whole Windows installers. The v29 tar and ZIP checks use the enclosed programs as their reproduction targets. Each hash identifies a reference file. The table at the top records which comparisons passed.

SHA-256 of supplied release files
0b0c30cbfbf0432384e19dac6bb7db056da2959330be87ce3887236563aeac98  v29.1.0-bins/BitcoinIII-v29.1.0-x86_64-linux-gui-cli.tar.gz
5601126478a4560091b44e8f9875d31da0ad90fe4f669401d4a7fb1da71fdc30  v29.1.0-bins/BitcoinIII-v29.1.0-x86_64-win64-gui.zip
2d5275f51d92786913b926d703e596abc40a874d67ff7157191bb414a673b369  v29.1.1-bins/BitcoinIII-Core-v29.1.1-aarch64-linux-gui-cli.tar.gz
9613f60c01251575730ca9e5203e53d9e372e93132214135943420e5ba58df16  v29.1.1-bins/BitcoinIII-Core-v29.1.1-arm64-apple-darwin-cli.tar.gz
761a59e053b8242b87b36de5fffe39b489c9378afa552f916f8b422d94e699d2  v29.1.1-bins/BitcoinIII-Core-v29.1.1-arm64-apple-darwin-gui.zip
4d3761e149e5fcffaabf1064c3deca56c6a63fb3c8352b240fbac219d6e4a6e9  v29.1.1-bins/BitcoinIII-Core-v29.1.1-win64-setup.exe
3f1f0d4ce191a352918d8ef92aaa76b80fb8d9bb24c9ef09cc025cb4ac6aa43b  v29.1.1-bins/BitcoinIII-Core-v29.1.1-x86_64-apple-darwin-cli.tar.gz
ec9f971e1d7d5cc77617a1816773b7b9e5a2692b98c6249e1df3bec9ee56d8eb  v29.1.1-bins/BitcoinIII-Core-v29.1.1-x86_64-apple-darwin-gui.zip
c547e7d14212f35851779e1d132e29ac6abe4b515a713203fa48c8c327181e13  v29.1.1-bins/BitcoinIII-Core-v29.1.1-x86_64-linux-gui-cli.tar.gz
7bd92b57e8690e679697df81d66139bbc1d30d7fc4c46a05b5c833d0f93eafcc  v29.1.1-bins/BitcoinIII-Core-v29.1.1-x86_64-win64-gui.zip
85b0ac39d406a16e696f63df97cc4555f4f368f6d67a32be8c549e48feec3271  v31.1.3-bins/bitcoinIII-core-v31.1.3-linux-aarch64.tar.xz
6e29a1ded9cc3025d52fc756516c4fd7b4846e611bce5d63f50b00c237db3049  v31.1.3-bins/bitcoinIII-core-v31.1.3-linux-x86_64.tar.xz
825d2ca535ce875dd30744ff0b54f5b87d4da44bd9b534c7678776b9d9fd7097  v31.1.3-bins/bitcoinIII-core-v31.1.3-macos-arm64-app.zip
cad6bd088469394f7b7ad4ed18e818ccaa8fcd82c8f46b61c021520ca07c163e  v31.1.3-bins/bitcoinIII-core-v31.1.3-macos-arm64.tar.xz
72b6225d0f683d1d1ba292eb74adb14b1fe5e7d6b7e49d2ab9327caaa4d2c01a  v31.1.3-bins/bitcoinIII-core-v31.1.3-macos-x86_64-app.zip
68957aad401aa0cb89971c89a4889924820bbdccd6b56e37623656ccad422957  v31.1.3-bins/bitcoinIII-core-v31.1.3-macos-x86_64.tar.xz
f9289d372db9ff2e4f93030e642fe9002ac0ffda6ffda851f88c7f50611d96da  v31.1.3-bins/bitcoinIII-core-v31.1.3-win64-setup.exe
e2e3b0f20c78ba709a93f70f783ea0a269e172b34a8edde8df35c01492d5f3db  v31.1.3-bins/bitcoinIII-core-v31.1.3-win64.zip