Vitor Pamplona on Nostr: That's how I did it on Amethyst. Inner events are just regular notes with empty ...
That's how I did it on Amethyst. Inner events are just regular notes with empty signatures. You can query them with regular filters. Becuase they are empty, even if there is a bug in the code and they end up being broadcasted, relays won't accept them.
Though if you have support for multiple accounts, you might want to make sure the decrypted conversations of one account are not mixed with another account.
Published at
2024-04-29 20:18:16Event JSON
{
"id": "c198727ff62f2cf9307cb5ec53684caea30209cc963746b9822af0ba5c9ede3e",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1714414696,
"kind": 1,
"tags": [
[
"p",
"1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef",
"wss://purplepag.es/",
"JeffG"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"wss://relay.damus.io/",
"jb55"
],
[
"e",
"36f0313c9c3adf906e5d880ee105a2c8a83a25faea7bcb6d280401feddaa0de5",
"wss://relay.damus.io/",
"reply"
]
],
"content": "That's how I did it on Amethyst. Inner events are just regular notes with empty signatures. You can query them with regular filters. Becuase they are empty, even if there is a bug in the code and they end up being broadcasted, relays won't accept them. \n\nThough if you have support for multiple accounts, you might want to make sure the decrypted conversations of one account are not mixed with another account.",
"sig": "68c3a5759d69835a6968a83fe52712ca1fbd94132f19c4d65328400c2fe924aa650732b86ad2c3042b6487779728f4f5a09022a15aeb3d328e1453674e3a17ce"
}