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

Switching to CIDv1 by default #11

Open
RubenKelevra opened this issue Mar 26, 2023 · 0 comments
Open

Switching to CIDv1 by default #11

RubenKelevra opened this issue Mar 26, 2023 · 0 comments

Comments

@RubenKelevra
Copy link

RubenKelevra commented Mar 26, 2023

IPFS will soon switch to CIDv1 by default (bafy.....) vs the old CIDv0 (Qm.....):

If you can't decide between CIDv0 and CIDv1, consider choosing CIDv1 for your new project and opt in by passing a version flag (ipfs add --cid-version 1). This is more future-proof and safe for use in browser contexts.

The IPFS project will switch to CIDv1 as the new default in the near future.

Source

They are much better to handle, as they are not case sensitive. So using them in directly in the browser with ipfs:// works.

As there's no downside using CIDv1 - and converting existing CIDv0 to CIDv1 in any output git-lfs-ipfs makes, like ipfs does when you set --upgrade-cidv0-in-output - the change should be a no-brainer.

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