1
0

trezor: segwit offline signing

This commit is contained in:
SomberNight
2018-03-03 02:39:49 +01:00
parent 7816edc342
commit 0df6d1ec97
4 changed files with 27 additions and 6 deletions

View File

@@ -434,6 +434,9 @@ class TrezorPlugin(HW_PluginBase):
def electrum_tx_to_txtype(self, tx):
t = self.types.TransactionType()
if tx is None:
# probably for segwit input and we don't need this prev txn
return t
d = deserialize(tx.raw)
t.version = d['version']
t.lock_time = d['lockTime']