From e9f76298771f1592d5d53a1016c6ac67f3711db7 Mon Sep 17 00:00:00 2001 From: Tomas Krnak Date: Thu, 17 Nov 2022 13:59:40 +0700 Subject: [PATCH] fixup! feat(core): add Zcash shielded transactions --- core/src/apps/zcash/unified.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/apps/zcash/unified.py b/core/src/apps/zcash/unified.py index 954493ba60..b54e771438 100644 --- a/core/src/apps/zcash/unified.py +++ b/core/src/apps/zcash/unified.py @@ -13,7 +13,11 @@ from trezor.wire import DataError from apps.common.coininfo import CoinInfo from apps.common.readers import read_compact_size -from apps.common.writers import write_bytes_fixed, write_compact_size +from apps.common.writers import ( + write_bytes_fixed, + write_bytes_unchecked, + write_compact_size, +) from .f4jumble import f4jumble, f4unjumble @@ -111,7 +115,7 @@ def encode(receivers: dict[Typecode, bytes], hrp: str) -> str: length = len(raw_bytes) write_compact_size(w, typecode) write_compact_size(w, length) - write_bytes_fixed(w, raw_bytes, length) + write_bytes_unchecked(w, raw_bytes) write_bytes_fixed(w, padded(hrp), 16) f4jumble(memoryview(w))