Return new address on method 'new'

This commit is contained in:
nolash
2020-09-20 10:15:48 +02:00
parent 630db89381
commit 5a45512f3b
2 changed files with 5 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ class ReferenceKeystore(Keystore):
def new(self, password=None):
b = os.urandom(32)
pk = keyapi.PrivateKey(b)
self.import(pk, password)
return self.import_key(pk, password)
def import_key(self, pk, password=None):