1
0

keystore.sign_message: add optional script_type argument

this is used by trezor
(and also by bitbox02, which was using a workaround previously)

fixes https://github.com/spesmilo/electrum/issues/7670
This commit is contained in:
SomberNight
2022-02-22 19:20:03 +01:00
parent 6603359c20
commit 376fc01b27
11 changed files with 37 additions and 21 deletions

View File

@@ -455,7 +455,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
raise RuntimeError(_('Encryption and decryption are currently not supported for {}').format(self.device))
def sign_message(self, sequence, message, password):
def sign_message(self, sequence, message, password, *, script_type=None):
sig = None
try:
message = message.encode('utf8')