Skip to content

JS Wasm interaction

Zahoor Mohamed edited this page Oct 14, 2020 · 2 revisions
  1. 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 ??

  2. 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

  3. ** 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.

Clone this wiki locally