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

Discussion: DocID encoding #59

Open
oed opened this issue Aug 12, 2020 · 8 comments
Open

Discussion: DocID encoding #59

oed opened this issue Aug 12, 2020 · 8 comments
Assignees

Comments

@oed
Copy link
Member

oed commented Aug 12, 2020

Discussion for CIP-59.

@michaelsena
Copy link
Member

@oed This looks great, and very useful especially as we have more than one network. On that note, is namespace a standard in multiformats, or something we created. If it's something we created, then perhaps networkID is more clear? Unless you see a use case for this where the namespace will not equal a networkID.

@oed
Copy link
Member Author

oed commented Aug 12, 2020

@michaelsena Its different from multiformats. I think namespace is more clear since networkID is usually (in ethereum) used to refer to the peer network itself. Where as this is actually more of a namespace for documents.

@ukstv
Copy link
Contributor

ukstv commented Aug 12, 2020

To clarify, which base32 is used here? Also, padding?

@oed
Copy link
Member Author

oed commented Aug 12, 2020

@ukstv See here: https://github.com/multiformats/multibase (updated spec with link)

@OR13
Copy link

OR13 commented Aug 14, 2020

can i get a link to the format of the complete bytes for the resource identified by genesis-cid-bytes? (I want to see what genesis data is)

@oed
Copy link
Member Author

oed commented Aug 14, 2020

You can have a look in the Ceramic specs @OR13
Note however that different doctypes might encode this using various ipld codecs. For example, tile uses dag-jose, while 3id and caip10-link just uses dag-cbor.

In theory a doctype could support a genesis format of any shape, as long as ceramic has a way to interpret what doctype is being used.

@oed
Copy link
Member Author

oed commented Sep 23, 2020

Updated the specs and created a PR: #61

@oed oed changed the title DocID encoding Discussion: DocID encoding Sep 24, 2020
@oed
Copy link
Member Author

oed commented Nov 2, 2020

@zachferland can you please make a PR to update the DocID spec based on the changes that ended up in the implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants