-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding decentralized media #131
Comments
We can definitely standardize this, but I think it would be nice to see it implemented and used with success first because I am not sure people will prefer this over https://gateway.cloudflare.com/ipfs links (or whatever is the best gateway these days). |
A client could convert URNs to cloudflare gateway links on the fly. The signed nostr message should use the URN because it is permanent. How the client wants to access the referenced file and how it wants to present the link to the user is client preference. I think it is important to establish a truly decentralized media strategy early on. The nice thing about using this URN scheme is that clients don't HAVE to implement a full blown IPFS implementation, they can just make use of a number of different reliable public gateways for now. It provides the option of quick centralized implementation, but also the option of fully decentralized media retrieval. |
I agree. What is the format of that URN? |
More info on IPFS CID: https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid Example:
Which can be accessed using the cloudflare gateway for example with this link: |
I think it would be better to standardize on URLs instead of URNs, as it's equally flexible and probably more portable. Also, IPFS community has settled on |
@burdiyan Thanks for your input! I think that is a very good idea! |
I think this is incredible. For example, there is an open question about bittorrent on nostr here: Protocol for decentralized image and video hosting. An example URN with bittorrent would be something like:
Also, I think this is a good idea because there is a proposal to specify the url scheme for bitttorent here. Proposal: protocol scheme for urls. Another interesting option is to add magic links in the URN. |
Mr. Ghost, please stop using the Ghost account to talk here. |
Relays can't be expected to host media, the infrastructure requirements would be immense. URLs break and many image/video hosts do annoying things that prevent simple unobtrusive viewing of media. Use of decentralized URN to embed media in messages should be normalized.
Example URN:
There is an open issue on the IPFS repo to register this URN with IANA, not that being registered really matters and nostr could adopt either way.
It would be up to the individual nostr implementations/clients to decide how to implement. They could embed an IPFS client or just issue http requests to public gateways. So this is not truly part of the nostr protocol, rather just a suggestion to clients.
The text was updated successfully, but these errors were encountered: