1
0
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:
Tomas Krnak 2022-11-17 14:01:28 +07:00
parent e9f7629877
commit d4fc75e994

View File

@ -43,24 +43,6 @@ def address_receiver_length(typecode: int) -> int | None:
return None
def fvk_prefix(coin: CoinInfo) -> str:
"""Prefix for a unified Full Viewing Key."""
if coin.coin_name == "Zcash":
return "uview"
if coin.coin_name == "Zcash Testnet":
return "uviewtest"
raise ValueError
def ivk_prefix(coin: CoinInfo) -> str:
"""Prefix for a unified Incoming Viewing Key."""
if coin.coin_name == "Zcash":
return "uivk"
if coin.coin_name == "Zcash Testnet":
return "uivktest"
raise ValueError
def padded(hrp: str) -> bytes:
assert len(hrp) <= 16
return hrp.encode() + bytes(16 - len(hrp))