mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
disable key import in all bip32 wallet classes; users should create an ImportedWallet
This commit is contained in:
parent
894a09e164
commit
4ce699bf25
1 changed files with 3 additions and 3 deletions
|
@ -1274,6 +1274,9 @@ class BIP32_Wallet(Deterministic_Wallet):
|
||||||
def is_watching_only(self):
|
def is_watching_only(self):
|
||||||
return not bool(self.master_private_keys)
|
return not bool(self.master_private_keys)
|
||||||
|
|
||||||
|
def can_import(self):
|
||||||
|
return False
|
||||||
|
|
||||||
def get_master_public_key(self):
|
def get_master_public_key(self):
|
||||||
return self.master_public_keys.get(self.root_name)
|
return self.master_public_keys.get(self.root_name)
|
||||||
|
|
||||||
|
@ -1482,9 +1485,6 @@ class Wallet_2of2(BIP32_Wallet, Mnemonic):
|
||||||
root_derivation = "m/"
|
root_derivation = "m/"
|
||||||
wallet_type = '2of2'
|
wallet_type = '2of2'
|
||||||
|
|
||||||
def can_import(self):
|
|
||||||
return False
|
|
||||||
|
|
||||||
def create_main_account(self, password):
|
def create_main_account(self, password):
|
||||||
xpub1 = self.master_public_keys.get("x1/")
|
xpub1 = self.master_public_keys.get("x1/")
|
||||||
xpub2 = self.master_public_keys.get("x2/")
|
xpub2 = self.master_public_keys.get("x2/")
|
||||||
|
|
Loading…
Add table
Reference in a new issue