What is Nostr?
Vitor Pamplona
npub1gcx…nj5z
2023-03-04 21:21:37
in reply to nevent1q…rvae

Vitor Pamplona on Nostr: ok, now I understand it. It's about escaping the content field to create the JSON ...

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.
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z