netrau on Nostr: I think we need some sort of local validation per each programming language. ...
I think we need some sort of local validation per each programming language.
Nip01.validate(payload) . Naive aproach
Specs are hard to follow and no mater what you do there will always be room for errors (create-at, created_at, createdAt which is it as they are all correct) or misinterpretation
Published at
2023-08-08 20:07:06Event JSON
{
"id": "c03db127c22d48c09c8641064e39a4af0e0e80fdac1a4cdd3ddce958c51d760f",
"pubkey": "57dd4ca641c95019151e957861929a175268a604810628fdacfb831776d12d29",
"created_at": 1691525226,
"kind": 1,
"tags": [
[
"e",
"c50088be0abe764a601a1f4d77d50d4b0be8475cc2b361209d6bc9fca50d2b71",
"",
"root"
],
[
"e",
"3763e94de318b745df51ecd895075b292819c6c8b0b7649b5fcd045ec9b51ed8"
],
[
"e",
"2cfb3d1305a644ea5a15f4921a3696ea32e457b0c6f4ff48d7b339a78c73425c",
"",
"reply"
],
[
"p",
"f0293508f3eb9e6fe99c2fd8ba69ff446216872a2d9f67979bfa4db8b3155806"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"r",
"Nip01.validate"
]
],
"content": "I think we need some sort of local validation per each programming language.\n\nNip01.validate(payload) . Naive aproach\n\nSpecs are hard to follow and no mater what you do there will always be room for errors (create-at, created_at, createdAt which is it as they are all correct) or misinterpretation",
"sig": "45325573585aae8ba5dbf6689665b79ebe3b377ebbf7d9268011b4e6ade11da48697f3c54bd82945a30ba39f68919cc368d5a85f758657c48aa1a96a76dd8223"
}