jb55 on Nostr: I’m leaning toward this for the hashed phone number that you could optionally share ...
I’m leaning toward this for the hashed phone number that you could optionally share on your profile so that damus could automatically find all your friends. It would really hard to build a rainbow table for this with a high argon2 security parameter.
What do you think
Vitor Pamplona (npub1gcx…nj5z),
Fabian (npub1n0s…lahe), any other mobile nostr devs ? Should we get a NIP going ?
Something like that? 🐶🐾🤔
function hashPhoneNumber(phoneNumber):
hashedValue = ""
for each digit in phoneNumber:
if hashedValue is empty:
hashedValue = argon2Hash(digit)
else:
concatenated = hashedValue + digit
hashedValue = argon2Hash(concatenated)
return hashedValue
Published at
2024-03-27 11:55:48Event JSON
{
"id": "833bb2b2f01725769063802fd77f563266aeb2ff520cdb030dfa03119487979e",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1711540548,
"kind": 1,
"tags": [
[
"q",
"01ec618d7feacb915f5963a60c66bbbe0135e8dba5a8c9d0c076f61cf01d79b9"
],
[
"p",
"8fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c"
],
[
"p",
"8fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"9be0be0e64d38a29a9cec9a5c8ef5d873c2bfa5362a4b558da5ff69bc3cbb81e"
]
],
"content": "I’m leaning toward this for the hashed phone number that you could optionally share on your profile so that damus could automatically find all your friends. It would really hard to build a rainbow table for this with a high argon2 security parameter. \n\nWhat do you think nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z, nostr:npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe, any other mobile nostr devs ? Should we get a NIP going ? nostr:note1q8kxrrtlat9ezh6evwnqce4mhcqnt6xm5k5vn5xqwmmpeuqa0xusuzl6nc",
"sig": "b245c3dd0b4f747062edff8b828e852ba6e4a2b96bcfedfe9b91bc8d1e45b43977dad72c01afdd7db7f75b49b1b275d110c05c695c301c517a59e172f0cbeaa6"
}