sandwich on Nostr: This is similar, but slightly smaller scope, to something I wanted to build, here's ...
This is similar, but slightly smaller scope, to something I wanted to build, here's some of the features I had around event validation
1. Validate against NIP (for example: if kind 33 is the `d` tag present)
2. Detect supported NIP requirements
3. For NIPs that use stringified JSON in content body, validate `JSON.parse` (probably deprecated)
Published at
2023-03-25 13:09:02Event JSON
{
"id": "f9c9f70569da0673d6418ff1488bd49da707479d671dd47ffdddd34538568caf",
"pubkey": "e771af0b05c8e95fcdf6feb3500544d2fb1ccd384788e9f490bb3ee28e8ed66f",
"created_at": 1679749742,
"kind": 1,
"tags": [
[
"e",
"d8c54e28262979628380f57618ef722601c0da119af991d6c47892f3edceadcb",
"",
"reply"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "This is similar, but slightly smaller scope, to something I wanted to build, here's some of the features I had around event validation \n\n1. Validate against NIP (for example: if kind 33 is the `d` tag present)\n2. Detect supported NIP requirements \n3. For NIPs that use stringified JSON in content body, validate `JSON.parse` (probably deprecated) ",
"sig": "b20f6ea14464ab324aa53dad62618d7af6dea8d00de99398e0172085bd1e31ce4d584af0eec0f8763b86235aaa8250fc29e4cded1af123f3ad610ba6159cb02a"
}