File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 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 ):
You can’t perform that action at this time.
0 commit comments