wakoinc on Nostr: You can look at some Nostr library code and open source apps to see how’s it done ...
You can look at some Nostr library code and open source apps to see how’s it done today.
Certainly could be more strict. But it leverages existing JSON programming language libraries, which likely have already mostly standardise.
The signature is only signing the event id, not the serialised event. But again, I’m yet to see any issues in the wild.
Published at
2023-03-10 13:39:30Event JSON
{
"id": "239d7dcb8fccdaa160d8f7555639fe03bad8f885c671161ff26b438dd406d3cd",
"pubkey": "b2dd40097e4d04b1a56fb3b65fc1d1aaf2929ad30fd842c74d68b9908744495b",
"created_at": 1678455570,
"kind": 1,
"tags": [
[
"e",
"49c73c74eb537436ffab8128e6b1a1243de442f87f06fbe8dc32eee6687c4887",
"wss://relay.snort.social"
],
[
"e",
"fd380ed715ccfd5de1bfd3bc514300bc3df889b22359dfc73f89a80bad323bb6"
],
[
"p",
"67ddca50751581c703c174790588c2cd8b00f80313d0f80a5b9e73d45e48ac20"
],
[
"p",
"67ddca50751581c703c174790588c2cd8b00f80313d0f80a5b9e73d45e48ac20"
]
],
"content": "You can look at some Nostr library code and open source apps to see how’s it done today. \n\nCertainly could be more strict. But it leverages existing JSON programming language libraries, which likely have already mostly standardise. \n\nThe signature is only signing the event id, not the serialised event. But again, I’m yet to see any issues in the wild.",
"sig": "e759c47fcd4f05412b52be926f3397ba10a214194cde2ee9d6690847dbff525c0925ba34c219eb0b1f9c4213a88f7025b24c9add44aff485d87f1978275f1015"
}