On the gun alias
system:
Is it like a phone book (public key book) where every user could have a different name for each key?
Is it stored in a user's user space, or is there some kind of local dict, or is it more of a global/universe thing?
There seems to be two ways to initialise a user:
1: via an alias and password, e.g.
let eve = gun.user().auth('Eve' ,'password123')
How do you recover the public key for eve
?
Here's what I have but is seems like there'd be a better way:
let userObj
let eve= gun.user().auth('Eve' ,'password456',(u)=>{userObj = u})
let evePub = userObj.put.pub // or eve._.put.pub
2: via SEA pair, e.g.
let bob = await SEA.pair();
await gun.user().auth(bob)
How do you set an alias for bob
?
Perhaps I have to set SEA.name
or something to do with ~@
in the user space, but I'm not sure..
eve
use the call back function:~@<alias>
property of the~publicKeyOfUser
node, like this: