Post
Topic
Board Hardware wallets
Re: Foundation Passport Official Thread
by
foundationdvcs
on 16/06/2023, 15:03:09 UTC
Could you try the latest version of the WIP script update and verify that it gives you the correct hashes? You can find it directly in the MR here:

https://gitlab.com/sethforprivacy/walletScrutinyCom/-/blob/master/scripts/test/hardware/passport.sh
This script is cheating, though! Grin Compared to the old WalletScrutiny script, it doesn't contain the actual build commands itself, but just downloads your Justfile script and runs that instead. I'd really like to be able to reproduce it with my own script, instead.

Yes, but the Justfiles are all open-source and verifiable themselves, they just greatly simplify things and remove the need to make changes to the WalletScrutiny script if the build environment or steps change. The use of Rust in particular poses unique challenges to reproducibility, as even doing the rust setup commands in a slightly different order will change the output binaries and thus their hashes.

Understand wanting to be able to reproduce from scratch, though! Is there a reason you aren't directly copying the Dockerfile and the `docker run` command and using them directly to build the image and then build the firmware? You would also need to replicate the build steps *exactly* from the relevant Justfile.

Doing that would ensure that you're using the exact same environment. If you don't want to copy the files themselves, I would use them as a direct reference, as if there is even the smallest difference in the image you build under podman you can expect the hashes to not match.

I do understand that Leo wants to reproduce / verify your script first.. Wink That's basically what I have been trying, too, with his podman setup. Maybe you can send him a link to my script and he can start off of that.

Will pass it on once we get things worked out for your manual script to reproduce properly Smiley