“Why does my follower count change” Great explanation: #[0] Which is why as clients we need a better method of calculating this.

Replies (33)

peterzander's avatar
peterzander 2 years ago
And better understandable simple english explanations.
Glad this is why you had me kinda scared there for a sec reading this exchange. AM I A GHOST??
threeseries's avatar
threeseries 2 years ago
Mine fluctuates pretty wildly and I only appear to have max 100 or so followers (I'm using Amethyst)
Default avatar
cliffclavin 2 years ago
I joined nostr after reading about the design and protocol and finding it pretty interesting. The followers calculation is the most stand out UX anomaly.
Interesting... I am unable to verify that the event id of the quoted event matches the hash of the content. Does it match for you? In native Kotlin, the sha256 of the content is not the id. The signature checks if you use the event id, but it doesn't if i try to hash it again. That's why Amethyst doesnt display. It doesn't accept as a valid message.
It leaves me with more questions than answers. Namely, how do we get an accurate count? And should apps like Damus cache the follower count for a day or so, rather than ask relays each time?
ok, now I understand it. It's about escaping the content field to create the JSON string. Some implementations are escaping newline char into "\n" (2 chars) but not other characters like LSEP into \u2028 (6 chars) before hashing. Everything is fine in interfaces because they automatically space and unescape things. But the hash is sensitive to those differences. The issue is that some implementations PARTIALLY escape some characters and not escape others. I am not sure if there is a standard for these choices.
Turns out, we hit something as new as last week: JSON lib devs are struggling to figure out a standard to escape or not escape \u2028 and \u2029 #[4] we need to clarify how to escape the String of content in NIP-01 before the string is converted to bytes using UTF-8 and then hashed. Which characters get escaped and which ones don't
Default avatar
BTC Hodl 2 years ago
Should follower count even exist in the UI if it can not accurate? Being an apologist for tech is not going to scale to mainstream UX. I am starting to feel that trying to imitate Twitter is a bad idea for Nostr apps. Nostr apps should reduce clutter and focus on its unique strength - censorship resistant RSS feed.
I wonder are there any emoji that can be encoded as different UTF8 depending on the implementations too. I think the underlying problem is that utf8 mostly concerning about how non-ascii characters can be packed in a ascii text which is json. The encode can varies as long as the decoded can restore it correctly. Nostr can’t allow varies encode given a same character, otherwise the id will differ. 😔
p.'s avatar
p. 2 years ago
d41733136b81288fbd161707e080c5adc42195312a2bab32100f16e43a3e01c9