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

Specify CID without a specific binary encoding #61

Open
vmx opened this issue Mar 20, 2023 · 0 comments
Open

Specify CID without a specific binary encoding #61

vmx opened this issue Mar 20, 2023 · 0 comments

Comments

@vmx
Copy link
Member

vmx commented Mar 20, 2023

In the current spec, CIDs are tied to a specific binary encoding. I propose splitting the CID spec into a definition of the values it describes and some default binary encoding.

The description of the values would talk about the version, the IPLD codec and the Multihash. It would be independent on how it is represented. For example rust-CID supports encoding a CID using the SCALE codec, which is not the default binary encoding of the CID.

There would then be a default binary encoding (as it is today) with the varints.

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