Skip to content

Commit f9ba7b1

Browse files
committed
resolved conflicts and added create wallet method
1 parent 45d55f3 commit f9ba7b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lighthouseweb3/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
ipns_publish_record as ipnsPublishRecord,
1515
get_ipns_record as getIpnsRecord,
1616
remove_ipns_record as removeIpnsRecord,
17+
create_wallet as createWallet
1718
)
1819

1920

@@ -106,6 +107,18 @@ def removeKey(self, keyName: str):
106107
return removeIpnsRecord.remove_ipns_record(self.token, keyName)
107108
except Exception as e:
108109
raise e
110+
111+
@staticmethod
112+
def createWallet(password: str):
113+
"""
114+
Creates a new wallet using the provided password.
115+
:param password: str, The password to secure the wallet.
116+
:return: dict, The wallet encrypted with the passowrd
117+
"""
118+
try:
119+
return createWallet.create_wallet(password)
120+
except Exception as e:
121+
raise e
109122

110123
@staticmethod
111124
def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):

0 commit comments

Comments
 (0)