fix: public instead of private
This commit is contained in:
parent
f550b452be
commit
1751c3ac7f
@ -1735,13 +1735,13 @@ class OldWallet(NewWallet):
|
|||||||
def create_master_keys(self, password):
|
def create_master_keys(self, password):
|
||||||
seed = pw_decode(self.seed, password)
|
seed = pw_decode(self.seed, password)
|
||||||
mpk = OldAccount.mpk_from_seed(seed)
|
mpk = OldAccount.mpk_from_seed(seed)
|
||||||
self.storage.put('master_private_key', mpk, True)
|
self.storage.put('master_public_key', mpk, True)
|
||||||
|
|
||||||
def get_master_public_key(self):
|
def get_master_public_key(self):
|
||||||
return self.storage.get("master_public_key")
|
return self.storage.get("master_public_key")
|
||||||
|
|
||||||
def create_accounts(self, password):
|
def create_accounts(self, password):
|
||||||
mpk = self.storage.get('master_private_key')
|
mpk = self.get_master_public_key()
|
||||||
self.create_account(mpk)
|
self.create_account(mpk)
|
||||||
|
|
||||||
def create_account(self, mpk):
|
def create_account(self, mpk):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user