mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-04 12:56:25 +00:00
fixup! feat(core): add Zcash shielded transactions
This commit is contained in:
parent
2dcdb573f9
commit
b9e5a4cf19
@ -107,11 +107,7 @@ def encode(receivers: dict[Typecode, bytes], hrp: str) -> str:
|
|||||||
|
|
||||||
w = empty_bytearray(length)
|
w = empty_bytearray(length)
|
||||||
|
|
||||||
# receivers in ascending order
|
for typecode, raw_bytes in sorted(receivers.items()):
|
||||||
receivers_list = list(receivers.items())
|
|
||||||
receivers_list.sort()
|
|
||||||
|
|
||||||
for (typecode, raw_bytes) in receivers_list:
|
|
||||||
length = len(raw_bytes)
|
length = len(raw_bytes)
|
||||||
write_compact_size(w, typecode)
|
write_compact_size(w, typecode)
|
||||||
write_compact_size(w, length)
|
write_compact_size(w, length)
|
||||||
|
Loading…
Reference in New Issue
Block a user