1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-31 18:40:56 +00:00

docs(core): Add comment about "Invalid original TXID" message.

This commit is contained in:
Andrew Kozlik 2020-12-17 14:39:54 +01:00 committed by Andrew Kozlik
parent d252539125
commit a609eb5e90

View File

@ -185,4 +185,8 @@ class OriginalTxInfo(TxInfoBase):
if self.orig_hash != writers.get_tx_hash(
self.h_tx, double=self.signer.coin.sign_hash_double, reverse=True
):
# This may happen if incorrect information is supplied in the TXORIGINPUT
# or TXORIGOUTPUT responses or if the device is loaded with the wrong seed,
# because we derive the scriptPubKeys of change-outputs from the seed using
# the provided path.
raise wire.ProcessError("Invalid original TXID.")