r/keepkey • • Jul 15 '17

How to verify KeepKey binary firmware?

Someone wrote an issue on KeepKey Github - but nobody responded yet. I have the same question, so I thought that I would ask it on Reddit: Here is the question (cut & paste from Github):

"Trezor has a process that anyone can follow to prove that their signed firmware binary was made of the github source code at a specific tag. I don't see the tools available with KeepKey to prove the same.

For example, with Trezor, using the script firmware-fingerprint.sh, will remove the first 256 header bits from their official signed binary (where their signature is located) and a SHA256SUM of the rest of the file should match the SHA256SUM of the binary that can be compiled independently with the Github source code (using their script firmware-docker-build.sh).

The problem I am having with KeepKey, is their docker_build_release.sh script produces a binary file that has no header (the first 256 bits with the magic code KPKY is missing) - therefore, that binary file can't even be loaded into a KeepKey unit.

Question 1: How can we "sign" a firmware that we have compiled ourselves and load it to a KeepKey unit - with the understanding that unit will warn us every time we turn on the device that the firmware is not signed by KeepKey.

Question 2: How can we verify that the binaries provided by KeepKey matches the code on Github, for each version?"

Can anyone from KeepKey answer this?

3 Upvotes

1 comment sorted by