disable key import in all bip32 wallet classes; users should create an ImportedWallet
This commit is contained in:
parent
894a09e164
commit
4ce699bf25
|
@ -1274,6 +1274,9 @@ class BIP32_Wallet(Deterministic_Wallet):
|
|||
def is_watching_only(self):
|
||||
return not bool(self.master_private_keys)
|
||||
|
||||
def can_import(self):
|
||||
return False
|
||||
|
||||
def get_master_public_key(self):
|
||||
return self.master_public_keys.get(self.root_name)
|
||||
|
||||
|
@ -1482,9 +1485,6 @@ class Wallet_2of2(BIP32_Wallet, Mnemonic):
|
|||
root_derivation = "m/"
|
||||
wallet_type = '2of2'
|
||||
|
||||
def can_import(self):
|
||||
return False
|
||||
|
||||
def create_main_account(self, password):
|
||||
xpub1 = self.master_public_keys.get("x1/")
|
||||
xpub2 = self.master_public_keys.get("x2/")
|
||||
|
|
Loading…
Reference in New Issue