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 14
14
ipns_publish_record as ipnsPublishRecord ,
15
15
get_ipns_record as getIpnsRecord ,
16
16
remove_ipns_record as removeIpnsRecord ,
17
+ create_wallet as createWallet
17
18
)
18
19
19
20
@@ -106,6 +107,18 @@ def removeKey(self, keyName: str):
106
107
return removeIpnsRecord .remove_ipns_record (self .token , keyName )
107
108
except Exception as e :
108
109
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
109
122
110
123
@staticmethod
111
124
def downloadBlob (dist : io .BufferedWriter , cid : str , chunk_size = 1024 * 1024 * 10 ):
You can’t perform that action at this time.
0 commit comments