jb55 on Nostr: when you paste an nprofile to add it to the pack, it would get a relay from inside ...
when you paste an nprofile to add it to the pack, it would get a relay from inside the nprofile and add it as a hint to the p tag. nprofile is pubkey + relays bech32 encoded.
If the user is adding an npub you could attempt to fetch their relay list from a bootstrap relay list. You then would take one of their relays and add it as a hint
If the user types a nip05, you can try to get a relay from their nip05 data and use that as a hint (my nip05 has a demo of this). If there are no relays on their nip05 you could try to fallback to the method in the previous paragraph
Published at
2025-05-03 10:40:22Event JSON
{
"id": "8045211dab396a24bed790c9a055dacad49d8e0283cead5c6a5d5562bd360c52",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1746268822,
"kind": 1,
"tags": [
[
"e",
"06d4a77e4ff8099a30e42d6496aba6682a388e150561aa24ad78ced4f0fac229",
"",
"root"
],
[
"e",
"689cc08dc9079a8a0f6c04e82030e8378a33bfa4bf3030eb33f8aa39a8efcf3f",
"",
"reply"
],
[
"p",
"3eab247c63bb35dfa38e07ca102f6da28ba9b9d4687197743bde3a2b1d80aeed"
],
[
"p",
"c4f5e7a75a8ce3683d529cff06368439c529e5243c6b125ba68789198856cac7"
],
[
"p",
"9b29c1686ee70ce778d3fd27d8e0e137c721af0af3317f0adfc404f62238b38a"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
]
],
"content": "when you paste an nprofile to add it to the pack, it would get a relay from inside the nprofile and add it as a hint to the p tag. nprofile is pubkey + relays bech32 encoded.\n\nIf the user is adding an npub you could attempt to fetch their relay list from a bootstrap relay list. You then would take one of their relays and add it as a hint\n\nIf the user types a nip05, you can try to get a relay from their nip05 data and use that as a hint (my nip05 has a demo of this). If there are no relays on their nip05 you could try to fallback to the method in the previous paragraph",
"sig": "b9aed5ce0af6ea71fbae0856d0c8e0cb7b89a927177002de11c98f90698b1d665eef496c311eaf6855713e6cf0610e335a297a0e1e1076b4519b2a21c4639928"
}