Skip to content
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

Use CIDv1 hashes. #45

Open
MicahZoltu opened this issue Nov 5, 2023 · 0 comments
Open

Use CIDv1 hashes. #45

MicahZoltu opened this issue Nov 5, 2023 · 0 comments

Comments

@MicahZoltu
Copy link

IPFS CIDv0 hashes (Qm...) have largely been superseded by CIDv1 hashes (bafy...). While the v0 hashes are shorter, which is kinda nice, the v1 hashes work as subdomains which has massive positive security implications over v0. In the case of just sharing images, the ability to access it is a subdomain isn't particularly important, but I think it is important to normalize the usage of CIDv1 hashes and denormalize the usage of CIDv0 hashes.

The thinking here is similar to how we have trained everyone to use https everywhere, even though many websites would be fine with just http, because it is easier to just tell people to "always use https" than it is to try to explain to them when https is appropriate and when http will be sufficient. By always using bafy... hashes everywhere, we will (over time, as a community) train people that that is just how IPFS works so they don't have to stop and think about or understand under what conditions Qm... links are appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant