Skip to content

chore!: default to 1MiB chunks and 1024 children #172

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

2color
Copy link
Contributor

@2color 2color commented Mar 26, 2025

Background

Users often find it confusing that the same data results in a different UnixFS DAG and by extension a different CID. This has been discussed at length in the following forums thread.

Our current plan is to formalise these UnixFS settings into a profile that can be used across implementations to establish CID equivalency given the same input data.

What's in this PR

This PR, updates the defaults used by ipfs-car to to match the Storacha client, which is used by the w3up CLI by explicitly setting the chunk size and the dag width.

Note that these are also the defaults used by @helia/unixfs

Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alanshaw alanshaw merged commit 13553bd into storacha:main Mar 26, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants