From a609eb5e90d41ccf692ef4d0e98db5e52fe824d1 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Thu, 17 Dec 2020 14:39:54 +0100 Subject: [PATCH] docs(core): Add comment about "Invalid original TXID" message. --- core/src/apps/bitcoin/sign_tx/tx_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/apps/bitcoin/sign_tx/tx_info.py b/core/src/apps/bitcoin/sign_tx/tx_info.py index 42cc7bdd0..553e018c9 100644 --- a/core/src/apps/bitcoin/sign_tx/tx_info.py +++ b/core/src/apps/bitcoin/sign_tx/tx_info.py @@ -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.")