kaloyan-raev / hello-storj

Demo app for integrating the libstorj native library in Android
GNU General Public License v3.0
5 stars 3 forks source link

Registration Java API #16

Closed dri94 closed 7 years ago

dri94 commented 7 years ago

Please expose the method in the native library to allow for registration of new users

kaloyan-raev commented 7 years ago

@dri94 Now you have the Storj.register() Java method for the bridge account registration. I also implemented some simple UI for testing it - see the Register action in the main activity.

The workflow in the app for new users should be like this:

  1. Ask the user for email and password to register a new account
  2. Call Storj.register() with the email and password
  3. Upon success ask the user to check her inbox for a registration mail and click the confirmation link
  4. Call Storj.generateMnemonic() to generate new encryption key
  5. Display the generated encryption key to the user and ask her to write it down on a list of paper for backup
  6. Call Storj.importKeys() with the email, password and encryption key to create the authentication file on the device

That's it! Good luck :)