Fireblocks Recovery Utility: what verify mode proves
A Fireblocks backup kit is a ZIP file with a metadata document and a handful of ciphertexts. Verify mode decrypts the ciphertexts, adds them up modulo the curve order, multiplies the sum by the generator point, and compares the result to a hex string inside the metadata. If the bytes match, the old script prints Verified!, in green, and the desktop Utility opens a page of extended public keys to compare against the console. That is all the word means.
I read the verify path in both tools Fireblocks publishes for this, the old Python script and the current desktop Recovery Utility, as they were on GitHub this spring, because I wanted to know what a customer can honestly claim after a green line on an air-gapped laptop. The answer turned out to be narrower than the word suggests.
Update, 6 November. Fireblocks’ notice on the compromised eMudhra certificates, published 21 October, tells customers to “download the latest recovery kit (v1.8.9) through the Fireblocks console before your next recovery or recovery test”. It gives no reason specific to the Utility. I have not read v1.8.9, and everything below describes the spring commits linked above.
Publishing the tooling at all is the right call, since your exit from the platform then does not depend on the platform being alive.
The desktop app’s Verify page and its Recover page are the same form. RecoveryForm passes dangerouslyRecoverPrivateKeys: !verifyOnly into the same function. The private keys are computed either way. What changes is whether they survive to the result object. With the flag false, the code deletes xprv and fprv before returning. The legacy script does the same behind a --prv flag and a y/N prompt that defaults to no.
I like that. A routine check cannot turn into a key-handling incident.
Between decrypt and delete, the shares are combined and the result is compared to publicKey in metadata.json. One mismatch and the Utility throws Mismatch between recovered keys and metadata - unable to continue. The legacy tool prints the expected and computed keys for the failing key and carries on to the next one, which I preferred, for what that is worth.
What the green line proves is this. For that kit on that day, your recovery RSA key and its passphrase are correct, the owner’s mobile passphrase is correct, every key id in the metadata has shares in the ZIP (a cosigner share with no entry in the metadata is dropped without a word), and the shares produce the private key whose public key the kit says it should have. That is worth having. It takes three things on trust.
The reference is inside the kit. The public key the tool compares against was written into metadata.json by the same system that wrote the shares. A Verified! proves the kit is self-consistent. Binding it to your workspace is a human comparing two 111-character base58 strings against the console, and the tool does not do that part.
The chain code is copied. The extended key you see is built from a chain code read straight out of the metadata. It is not reconstructed from shares and nothing checks it. A wrong one would pass the key-level comparison and derive wrong addresses for every wallet.
The kit is a snapshot. The Utility iterates keysets from 1 to the highest id it finds in the metadata. A keyset created after the backup was cut does not fail the check, because the check never hears about it.
A fourth gap is in the wallet-level check the Utility offers after verification. It derives addresses from the recovered keys and lets you import the console’s address export to compare the two. When an imported address does not match, the code logs a warning, drops the imported row and keeps the derived one, under a comment that reads TODO: Show notice in UI when this happens. The screen can look complete while the mismatches sit in the log file. It is the one I would want a board to know about before it accepts a verification report.
The tool makes one check cheap, and the questions a board asks start where it stops.
Correction. An earlier version said the shares are recombined by Lagrange interpolation, which is true only for the older share format (keys created under the CMP protocol are additive shares and are summed directly). It also said both tools print Verified!, which only the old script does, and that every share has an entry in the metadata, which neither tool checks for cosigner shares.