Method testing tool
getFirmwareHash
🚫
Management command - this method is restricted to Trezor.io and can't be used in 3rd party applications.
Supported only by firmwares 1.11.1 and 2.5.1 or higher!
Params
Including CommonParams
PROTO.GetFirmwareHash
challenge
String
Optional
a random 32-byte challenge which is return form successful TrezorConnect.firmwareUpdate call
Example
Get hash of firmware installed in trezor device. It can be used to verify authenticity of firmware binaries intended to be installed.
TrezorConnect.getFirmwareHash({
challenge: '430d1ca5302edb40ac605e0ba61dc50928779336fdd02b688a833564c178307c',
});
Result
{
success: true,
payload: {
hash: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}