mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-03 03:11:17 +00:00
cash_addr: fix hardcoded value of CHECKSUM_SIZE
This commit is contained in:
parent
5c6b472883
commit
2bbbc3e155
@ -132,7 +132,7 @@ int cash_decode(char* hrp, uint8_t *data, size_t *data_len, const char *input) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
chk = cashaddr_polymod_step(chk) ^ v;
|
chk = cashaddr_polymod_step(chk) ^ v;
|
||||||
if (i + 6 < input_len) {
|
if (i + CHECKSUM_SIZE < input_len) {
|
||||||
data[i - (1 + hrp_len)] = v;
|
data[i - (1 + hrp_len)] = v;
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
|
Loading…
Reference in New Issue
Block a user