chr15m / bugout

Back end web app services over WebRTC.
https://chr15m.github.io/bugout
MIT License
607 stars 59 forks source link

Bugout instance name instead of address #8

Closed robert1233 closed 5 years ago

robert1233 commented 5 years ago

Is there a way to say "Robert connected", instead of using the hash address? Thanks!

chr15m commented 5 years ago

Yes there are different ways to associate a name with a hash and it really depends on your design choices. Some ways to do it:

At the lowest level what you want is for the message recipient's Bugout node to have some concept of a username associated with the hash. A simple key->value mapping from hash->username can solve this but what goes into the value side of the lookup and how it gets there depends upon your design.