|
|
|
@ -263,7 +263,7 @@ class WalletStorage(PrintError): |
|
|
|
self.put('wallet_type', 'standard') |
|
|
|
self.put('wallet_type', 'standard') |
|
|
|
self.put('keystore', d) |
|
|
|
self.put('keystore', d) |
|
|
|
|
|
|
|
|
|
|
|
elif wallet_type in['xpub', 'standard']: |
|
|
|
elif wallet_type in ['xpub', 'standard']: |
|
|
|
xpub = xpubs["x/"] |
|
|
|
xpub = xpubs["x/"] |
|
|
|
xprv = xprvs.get("x/") |
|
|
|
xprv = xprvs.get("x/") |
|
|
|
d = { |
|
|
|
d = { |
|
|
|
@ -275,6 +275,17 @@ class WalletStorage(PrintError): |
|
|
|
self.put('wallet_type', 'standard') |
|
|
|
self.put('wallet_type', 'standard') |
|
|
|
self.put('keystore', d) |
|
|
|
self.put('keystore', d) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif wallet_type in ['bip44']: |
|
|
|
|
|
|
|
xpub = xpubs["x/0'"] |
|
|
|
|
|
|
|
xprv = xprvs.get("x/0'") |
|
|
|
|
|
|
|
d = { |
|
|
|
|
|
|
|
'type': 'bip32', |
|
|
|
|
|
|
|
'xpub': xpub, |
|
|
|
|
|
|
|
'xprv': xprv, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.put('wallet_type', 'standard') |
|
|
|
|
|
|
|
self.put('keystore', d) |
|
|
|
|
|
|
|
|
|
|
|
elif wallet_type in ['trezor', 'keepkey', 'ledger']: |
|
|
|
elif wallet_type in ['trezor', 'keepkey', 'ledger']: |
|
|
|
xpub = xpubs["x/0'"] |
|
|
|
xpub = xpubs["x/0'"] |
|
|
|
derivation = self.get('derivation', bip44_derivation(0)) |
|
|
|
derivation = self.get('derivation', bip44_derivation(0)) |
|
|
|
|