mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-03 13:22:33 +00:00
fixup! feat(python): support bitcoin-like transaction signing anti-exfil protocol
This commit is contained in:
parent
402efee514
commit
f23cdd1565
@ -456,8 +456,14 @@ def sign_tx_common(
|
|||||||
R = messages.RequestType
|
R = messages.RequestType
|
||||||
|
|
||||||
nonce_commitment_list: List[bytes | None] = [None for _ in inputs]
|
nonce_commitment_list: List[bytes | None] = [None for _ in inputs]
|
||||||
if use_anti_exfil and entropy_list is None:
|
if use_anti_exfil:
|
||||||
entropy_list = [generate_entropy() for _ in inputs]
|
if entropy_list is None:
|
||||||
|
entropy_list = [generate_entropy() for _ in inputs]
|
||||||
|
else:
|
||||||
|
if len(entropy_list) != len(inputs):
|
||||||
|
raise ValueError(
|
||||||
|
"The length of the entropy list doesn't match the number of inputs"
|
||||||
|
)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# If there's some part of signed transaction, let's add it
|
# If there's some part of signed transaction, let's add it
|
||||||
|
Loading…
Reference in New Issue
Block a user