jb55 on Nostr: Correct answer. Don’t need to overcomplicate it. I was able to build a client just ...
Correct answer. Don’t need to overcomplicate it. I was able to build a client just by reading nip01. nip10 didn’t exist, so I copied what other clients were doing and I just added stuff that I needed like filter limits and command results.
I am not a fan of generic replaceable events/atags and am fighting against implementing that for as long as possible, so you can ignore that if you want basic event sourcing (outside of profiles and contact lists). Luckily nostrdb ignores that so you have a proper versioned history of all your profiles and contact lists.
Published at
2024-04-20 17:05:16Event JSON
{
"id": "4d5ea30a6fbde67910af4a4ed80e9445f4a3ecc9dafe19190589b40b1f82ede2",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1713625516,
"kind": 1,
"tags": [
[
"e",
"339e38754ff30eee95e242918410071cbc8a2603f420870675d13a8ca8625cfa"
],
[
"e",
"93d416c4919b8ad0f20462337d047d6cf5c0eb3911e8fd3df157c8783dbc8240"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"p",
"2779f3d9f42c7dee17f0e6bcdcf89a8f9d592d19e3b1bbd27ef1cffd1a7f98d1"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11"
],
[
"p",
"d61f3bc5b3eb4400efdae6169a5c17cabf3246b514361de939ce4a1a0da6ef4a"
],
[
"p",
"17538dc2a62769d09443f18c37cbe358fab5bbf981173542aa7c5ff171ed77c4"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "Correct answer. Don’t need to overcomplicate it. I was able to build a client just by reading nip01. nip10 didn’t exist, so I copied what other clients were doing and I just added stuff that I needed like filter limits and command results.\n\nI am not a fan of generic replaceable events/atags and am fighting against implementing that for as long as possible, so you can ignore that if you want basic event sourcing (outside of profiles and contact lists). Luckily nostrdb ignores that so you have a proper versioned history of all your profiles and contact lists.",
"sig": "00a81b5432e4226eb4371f5741e7b112cba5a2b7ac290a317db094717eb3d462fb92ac5db8d83cac61c975f5785aafb67b5aebd82de02ac7525eae626b6bb5c2"
}