mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
fixup! feat(core): add Zcash shielded transactions
This commit is contained in:
parent
e00744f68b
commit
bb500a3eb3
@ -22,7 +22,7 @@ from .keychain import OrchardKeychain
|
||||
from .random import BundleShieldingRng
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Awaitable, List
|
||||
from typing import Awaitable
|
||||
from apps.common.coininfo import CoinInfo
|
||||
from apps.bitcoin.sign_tx.tx_info import TxInfo
|
||||
from .crypto.keys import FullViewingKey
|
||||
@ -101,14 +101,14 @@ class OrchardSigner:
|
||||
await self.release_serialized()
|
||||
|
||||
# shuffle inputs
|
||||
inputs: List[int | None] = list(range(self.inputs_count))
|
||||
inputs: list[int | None] = list(range(self.inputs_count))
|
||||
assert inputs is not None # typing
|
||||
pad(inputs, self.actions_count)
|
||||
self.rng.shuffle_inputs(inputs)
|
||||
self.shuffled_inputs = inputs
|
||||
|
||||
# shuffle_outputs
|
||||
outputs: List[int | None] = list(range(self.outputs_count))
|
||||
outputs: list[int | None] = list(range(self.outputs_count))
|
||||
assert outputs is not None # typing
|
||||
pad(outputs, self.actions_count)
|
||||
self.rng.shuffle_outputs(outputs)
|
||||
|
Loading…
Reference in New Issue
Block a user