laanwj on Nostr: nostrudel has done something like that with a "public key color", generated ...
nostrudel has done something like that with a "public key color", generated deterministically from the public key, that can be used to distinguish users which otherwise have the same name/avatar
not sure this is the best solution as the eye can only distinguish so many colors, and ostensibly spammers could grind until they have a similar enough color (but currently don't), but it's something
Published at
2024-09-18 18:42:53Event JSON
{
"id": "b76c49e0a51b3dc960efaf2c1999c0cf2871d45f496191ad8cd18c8603ad51e6",
"pubkey": "0aa39e5aef99a000a7bdb0b499158c92bc4aa20fb65931a52d055b5eb6dff738",
"created_at": 1726684973,
"kind": 1,
"tags": [
[
"e",
"0000846249edf388ce28bdbed7661d29275f51fae2f11b70ff8d5cb18284f9d3",
"wss://relay.damus.io/",
"root"
],
[
"e",
"89dc0de7de709f3632a7dc2a2e6b4c5f5d6387e23f1cc8defcfcfffefbb0f388",
"",
"reply"
],
[
"p",
"1bf9f239dca1636149bc2f3fc334077ae959ea9607cacf945ef8f8bb227dc5e1",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "nostrudel has done something like that with a \"public key color\", generated deterministically from the public key, that can be used to distinguish users which otherwise have the same name/avatar\n\nnot sure this is the best solution as the eye can only distinguish so many colors, and ostensibly spammers could grind until they have a similar enough color (but currently don't), but it's something\n",
"sig": "9dab7d5ea40f48cc7422f1e5e892df9536e8fa59400a957492a2ecd0718956c20a0f9a9533c7a98e7ab5485f5e8a2d50bcfefddb48cfb806e8b52d7626623e45"
}