Asone on Nostr: Yesterday, while working on my authorization server for my relay, I was wondering : ...
Yesterday, while working on my authorization server for my relay, I was wondering :
What would happen in clients if a #nostr #relay were to spoof some events.
Example :
Alice sends an event to relay B and C, let's say a simple "Hello world".
All relays accepts the event and stores it. However, relay C modifies the content of the event. When referring to the note, the content relay C would return would be "Hello Satoshi".
Therefore, a client connecting to those relays would receive two different events with the same Id.
How clients would/should behave ?
Published at
2023-11-07 07:33:48Event JSON
{
"id": "fe03cff8b4e35eef5fdaaec354d176cfceb2f7537ac3c87d93ec5d69e9ae873c",
"pubkey": "7a5af9e01b137408e7cb2d85fb9d5d8395297ac19faf266069b82bc20b156859",
"created_at": 1699342428,
"kind": 1,
"tags": [
[
"t",
"nostr"
],
[
"t",
"nostr"
],
[
"t",
"relay"
],
[
"t",
"relay"
]
],
"content": "Yesterday, while working on my authorization server for my relay, I was wondering : \n\nWhat would happen in clients if a #nostr #relay were to spoof some events. \n\nExample : \n\nAlice sends an event to relay B and C, let's say a simple \"Hello world\".\n\nAll relays accepts the event and stores it. However, relay C modifies the content of the event. When referring to the note, the content relay C would return would be \"Hello Satoshi\".\n\nTherefore, a client connecting to those relays would receive two different events with the same Id. \n\nHow clients would/should behave ? \n",
"sig": "fd5de817b001886c41585baa87fbf391a705b3a11ddb74e90da55c387ebcefb09a190015aceef47ef8d5326eab198d8854bf242fa50736d965e7ddfae15bd27e"
}