This commit is contained in:
ThomasV 2017-05-21 10:21:32 +02:00
parent ac77c9b9bd
commit 265fd5ad3f

View file

@ -42,7 +42,7 @@ class TrezorCompatibleKeyStore(Hardware_KeyStore):
client = self.get_client()
address_path = self.get_derivation() + "/%d/%d"%sequence
address_n = client.expand_path(address_path)
msg_sig = client.sign_message(self.get_coin_name(), address_n, message)
msg_sig = client.sign_message(self.plugin.get_coin_name(), address_n, message)
return msg_sig.signature
def sign_transaction(self, tx, password):
@ -145,10 +145,7 @@ class TrezorCompatiblePlugin(HW_PluginBase):
return client
def get_coin_name(self):
if TESTNET:
return "Testnet"
else:
return "Bitcoin"
return "Testnet" if TESTNET else "Bitcoin"
def initialize_device(self, device_id, wizard, handler):
# Initialization method