-
Notifications
You must be signed in to change notification settings - Fork 13
JS Wasm interaction
Zahoor Mohamed edited this page Oct 14, 2020
·
2 revisions
-
CreateUser (userName, mnemonic, password) - returns (rootAddress)
The user is created by dfs using a HD wallet and the encrypted, password protected mnemonic is stored in Swarm. Also the mapping between the user and the returned root address is stored outside wasm ??
-
ImportUser (userName, mnemonic, password) - returns (rootAddress)
The user is imported from another application using the mnemonic. Like in create user, the mnemonic is encrypted, password protected and stored in Swarm. After this
-
** ImportUser** (UserName, address, password)
This method is called to import the dfs user in another device. The password is used to decrypt the mnemonic stored in Swarm.