Say I create a gun user like so:
let user = gun.user()
user.create('Bob','password123',console.log)
user.auth('Bob' ,'password123',console.log)
I can see that I can export the key pair using user._.sea, but am unsure whether I need (/whether it's possible) to export the salt as well. Is it possible to access the act object of the create prototype?
What is a good way to export the private key / salt such that the user could save a string (say a jwk) and use to authenticate on a different device?
What functions could you use to import the key in another session?
To export:
Session 1:
To import:
Session 2: