sondreb on Nostr: It's a great solution, I also think there is room for a NIP that includes the ability ...
It's a great solution, I also think there is room for a NIP that includes the ability of a key owner to update media locations in the future, e.g. if you move from one server to another. To reduce the link length, it should be path-based and not rely on hashes. It would require a new event that contains path-mappings for an identity and I could have many, sending content to different servers.
Example image link:
"nostr:media:17e2889fba01021d048a13fd0ba108ad31c38326295460c21e69c43fa8fbe515/home/memes/onehourlater.gif"
"nostr:media:17e2889fba01021d048a13fd0ba108ad31c38326295460c21e69c43fa8fbe515/work/memes/onehourlater.gif"
If a link to video/image starts with "nostr:media", then retrieve kind X of the pubkey, which can have multiple different route-mappings that replaces the root (or other parts) of the path.
"home" could map to mypersonaldomain dot com, while "work" coupld map to myworkdomain dot com slash images.
Published at
2023-03-01 16:35:13Event JSON
{
"id": "1e6392af69f6036d8354c05aa6fcac9355d6eeafe8f59fff338da5f2a5047cfd",
"pubkey": "17e2889fba01021d048a13fd0ba108ad31c38326295460c21e69c43fa8fbe515",
"created_at": 1677688513,
"kind": 1,
"tags": [
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"e",
"641b1005199612ae6ac94151873ceee0a938a011f7ba141efbb9e85e55dcc883"
]
],
"content": "It's a great solution, I also think there is room for a NIP that includes the ability of a key owner to update media locations in the future, e.g. if you move from one server to another. To reduce the link length, it should be path-based and not rely on hashes. It would require a new event that contains path-mappings for an identity and I could have many, sending content to different servers.\n\nExample image link:\n\n\"nostr:media:17e2889fba01021d048a13fd0ba108ad31c38326295460c21e69c43fa8fbe515/home/memes/onehourlater.gif\"\n\n\"nostr:media:17e2889fba01021d048a13fd0ba108ad31c38326295460c21e69c43fa8fbe515/work/memes/onehourlater.gif\"\n\nIf a link to video/image starts with \"nostr:media\", then retrieve kind X of the pubkey, which can have multiple different route-mappings that replaces the root (or other parts) of the path.\n\n\"home\" could map to mypersonaldomain dot com, while \"work\" coupld map to myworkdomain dot com slash images.",
"sig": "cb589074889d213f09a1d89fbfd9b682b9448bcb7402d69a719f5041bd3e44cda5c02822a380c27b216dfaf58add882d8809b92cdc20b929d744c7208fac7e91"
}