|
@ -177,7 +177,7 @@ class TrezorWallet(NewWallet): |
|
|
|
|
|
|
|
|
def address_id(self, address): |
|
|
def address_id(self, address): |
|
|
account_id, (change, address_index) = self.get_address_index(address) |
|
|
account_id, (change, address_index) = self.get_address_index(address) |
|
|
return "%s/%d/%d" % (account_id, change, address_index) |
|
|
return "44'/0'/%s'/%d/%d" % (account_id, change, address_index) |
|
|
|
|
|
|
|
|
def create_main_account(self, password): |
|
|
def create_main_account(self, password): |
|
|
self.create_account('Main account', None) #name, empty password |
|
|
self.create_account('Main account', None) #name, empty password |
|
@ -221,6 +221,8 @@ class TrezorWallet(NewWallet): |
|
|
return str(decrypted_msg) |
|
|
return str(decrypted_msg) |
|
|
|
|
|
|
|
|
def sign_message(self, address, message, password): |
|
|
def sign_message(self, address, message, password): |
|
|
|
|
|
if not self.check_proper_device(): |
|
|
|
|
|
give_error('Wrong device or password') |
|
|
try: |
|
|
try: |
|
|
address_path = self.address_id(address) |
|
|
address_path = self.address_id(address) |
|
|
address_n = self.get_client().expand_path(address_path) |
|
|
address_n = self.get_client().expand_path(address_path) |
|
|