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

Apps: upgrade to CIDv1 URLs if CIDv0 content is found #1468

Open
sohkai opened this issue Jul 5, 2020 · 0 comments
Open

Apps: upgrade to CIDv1 URLs if CIDv0 content is found #1468

sohkai opened this issue Jul 5, 2020 · 0 comments

Comments

@sohkai
Copy link
Contributor

sohkai commented Jul 5, 2020

IPFS 0.5/0.6 has migrated to defaulting to CIDv1 (encoded in base32, rather than CIDv0's base58) to support subdomains.

Gateways should continue redirecting from the old CIDv0 to CIDv1 for the foreseeable future, but we can improve performance by avoiding this redirect by doing the conversion ourselves when we detect a CIDv0 hash.

We can use two tools (combined for about ~60kbs):

  • is-ipfs to detect IPFS content
  • cid-tool for converting from CIDv0 to CIDv1
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