1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-04 17:36:02 +00:00

fix(legacy): input hash could be different on emulator

[no changelog]
This commit is contained in:
Martin Milata 2025-01-30 15:22:17 +01:00
parent 79bb074760
commit ba96a4268a

View File

@ -552,7 +552,8 @@ bool tx_input_check_hash(Hasher *hasher, const TxInputType *input) {
HASHER_UPDATE_INT(hasher, input->prev_index, uint32_t);
tx_script_hash(hasher, input->script_sig.size, input->script_sig.bytes);
HASHER_UPDATE_INT(hasher, input->sequence, uint32_t);
HASHER_UPDATE_INT(hasher, input->script_type, uint32_t);
uint32_t script_type = input->script_type;
HASHER_UPDATE_INT(hasher, script_type, uint32_t);
uint8_t multisig_fp[32] = {0};
if (input->has_multisig) {
if (cryptoMultisigFingerprint(&input->multisig, multisig_fp) == 0) {