digitalbitbox: enable native segwit

This commit is contained in:
benma 2018-04-06 14:36:56 +02:00 committed by SomberNight
parent cf98c8f2c1
commit f7d1d5a7c7
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -95,7 +95,7 @@ class DigitalBitbox_Client():
def get_xpub(self, bip32_path, xtype): def get_xpub(self, bip32_path, xtype):
assert xtype in ('standard', 'p2wpkh-p2sh') assert xtype in ('standard', 'p2wpkh-p2sh', 'p2wpkh')
reply = self._get_xpub(bip32_path) reply = self._get_xpub(bip32_path)
if reply: if reply:
xpub = reply['xpub'] xpub = reply['xpub']
@ -718,7 +718,7 @@ class DigitalBitboxPlugin(HW_PluginBase):
def get_xpub(self, device_id, derivation, xtype, wizard): def get_xpub(self, device_id, derivation, xtype, wizard):
if xtype not in ('standard', 'p2wpkh-p2sh'): if xtype not in ('standard', 'p2wpkh-p2sh', 'p2wpkh'):
raise ScriptTypeNotSupported(_('This type of script is not supported with the Digital Bitbox.')) raise ScriptTypeNotSupported(_('This type of script is not supported with the Digital Bitbox.'))
devmgr = self.device_manager() devmgr = self.device_manager()
client = devmgr.client_by_id(device_id) client = devmgr.client_by_id(device_id)