Skip to content

Define CIDv1 as a mutlicodec#187

Merged
Stebalien merged 2 commits intomultiformats:masterfrom
oed:patch-2
Aug 10, 2020
Merged

Define CIDv1 as a mutlicodec#187
Stebalien merged 2 commits intomultiformats:masterfrom
oed:patch-2

Conversation

@oed
Copy link
Copy Markdown

@oed oed commented Aug 7, 2020

This PR adds CIDv1 as a multicodec with value 0x01.

Fixes #49

@mikeal
Copy link
Copy Markdown
Contributor

mikeal commented Aug 7, 2020

Good idea.

We should reserve 2 and 3 as well for future versions.

@oed
Copy link
Copy Markdown
Author

oed commented Aug 7, 2020

Sure @mikeal can update the PR!

@Stebalien
Copy link
Copy Markdown
Member

We should reserve 2 and 3 as well for future versions.

It can't hurt to do that, but I don't think it's critical as we can always pick a different ID. But then again it would be nice to have them be sequential.

@Stebalien Stebalien requested review from mikeal and vmx August 10, 2020 07:23
@Stebalien Stebalien merged commit d39f7af into multiformats:master Aug 10, 2020
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.

Make CID versions multicodecs

4 participants