DanConwayDev on Nostr: 1. Yes. 2. I'm not really sure what you mean here. I think its always worth having ...
1. Yes.
2. I'm not really sure what you mean here. I think its always worth having the relay hints in the 30317 event but if they are ommited, then fallback methods of identifying relays are used.
3. I think the original NostrUrlDecodeed struct is better with an extra `nip05: Option<String>`property'. Whenever a url is decoded it should use an async parse function. Its a pain to pass around a version of the struct with so many optional properties which is barely useful without finding the pubkey.
Published at
2024-12-08 13:50:32Event JSON
{
"id": "addf507374855e65358fe237f2fb925ed30113a6ae11bd9fb19b9f3bc43cd518",
"pubkey": "a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d",
"created_at": 1733665832,
"kind": 1,
"tags": [
[
"e",
"29b2f4810dae7bf293e4da03c66204e090c2286441ddbf80ed5f76488d66b554",
"",
"root"
],
[
"e",
"29b2f4810dae7bf293e4da03c66204e090c2286441ddbf80ed5f76488d66b554",
"",
"root"
],
[
"e",
"243ef2ff8e8d2ae67ef50f8b3220e22e3f38fc5b61a97cc560a3fe5f3f74ff2e",
"",
"reply"
],
[
"p",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d"
],
[
"p",
"cfd7df62799a22e384a4ab5da8c4026c875b119d0f47c2716b20cdac9cc1f1a6"
],
[
"a",
"30617:a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d:ngit"
]
],
"content": "1. Yes. \n2. I'm not really sure what you mean here. I think its always worth having the relay hints in the 30317 event but if they are ommited, then fallback methods of identifying relays are used.\n3. I think the original NostrUrlDecodeed struct is better with an extra `nip05: Option\u003cString\u003e`property'. Whenever a url is decoded it should use an async parse function. Its a pain to pass around a version of the struct with so many optional properties which is barely useful without finding the pubkey.",
"sig": "501dbb1552e1f2c82d002eef5f48f5fbb4d74045d4ba1885709bc0fabbd69b0edc66926477883ab19f88fec58685b2c7235857c9dfaa58560610e48013cdf3be"
}