getFirmwareHash
:note: Supported only by firmwares 1.11.1 and 2.5.1 or higher!
Params
challenge
— requiredstring
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
}
}