mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-26 06:12:01 +00:00
core: rename class Overwintered to Zcashlike
This commit is contained in:
parent
b8063e882b
commit
d955e3f1e5
@ -25,7 +25,7 @@ async def sign_tx(
|
||||
if coin.decred:
|
||||
signer_class = decred.Decred # type: Type[bitcoin.Bitcoin]
|
||||
elif coin.overwintered:
|
||||
signer_class = zcash.Overwintered
|
||||
signer_class = zcash.Zcashlike
|
||||
elif coin.coin_name not in BITCOIN_NAMES:
|
||||
signer_class = bitcoinlike.Bitcoinlike
|
||||
else:
|
||||
|
@ -34,7 +34,7 @@ if False:
|
||||
OVERWINTERED = const(0x80000000)
|
||||
|
||||
|
||||
class Overwintered(Bitcoinlike):
|
||||
class Zcashlike(Bitcoinlike):
|
||||
def __init__(self, tx: SignTx, keychain: Keychain, coin: CoinInfo) -> None:
|
||||
ensure(coin.overwintered)
|
||||
super().__init__(tx, keychain, coin)
|
||||
|
@ -8,7 +8,7 @@ from apps.common import coins
|
||||
from apps.bitcoin.writers import get_tx_hash
|
||||
|
||||
if not utils.BITCOIN_ONLY:
|
||||
from apps.bitcoin.sign_tx.zcash import Overwintered
|
||||
from apps.bitcoin.sign_tx.zcash import Zcashlike
|
||||
|
||||
|
||||
# test vectors inspired from https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/zip_0243.py
|
||||
@ -190,7 +190,7 @@ class TestZcashZip243(unittest.TestCase):
|
||||
branch_id=v["branch_id"],
|
||||
)
|
||||
|
||||
zip243 = Overwintered(tx, None, coin)
|
||||
zip243 = Zcashlike(tx, None, coin)
|
||||
|
||||
for i in v["inputs"]:
|
||||
txi = TxInputType()
|
||||
|
Loading…
Reference in New Issue
Block a user