btimby / nimtok

IPFS / Nimiq messaging
MIT License
3 stars 0 forks source link

Add user icons. #5

Open btimby opened 3 years ago

btimby commented 3 years ago

During registration, allow the user to select an avatar image. Ideally we will provide some options, or allow the user to upload one.

Either way, the image should be uploaded to IPFS (de-dupe is automatic, so each user can just add their image file to IPFS and the profile can reference the CID).

A second system-provided avatar image will also be displayed, this image will be generated from the user's public key. An Identity component should control the display of a user's identity. This component should be used in the feed, and in the Publish component when listing users for mentions.

The display would be something like:

avatar | username (short code) | key-derived avatar (identicon).

+-----------+
|   O   X   |                          +--+
|    X  ^^  |   Username (short code)  |01|
+-----------+                          +--+

https://barro.github.io/2018/02/avatars-identicons-and-hash-visualization/

btimby commented 3 years ago

Possibly this:

https://jdenticon.com/#quick-start-in-the-browser