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
e9f7629877
commit
d4fc75e994
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user