CIPs icon indicating copy to clipboard operation
CIPs copied to clipboard

Discussion: DocID encoding

Open oed opened this issue 4 years ago • 8 comments

Discussion for CIP-59.

oed avatar Aug 12 '20 12:08 oed

@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.

michaelsena avatar Aug 12 '20 12:08 michaelsena

@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.

oed avatar Aug 12 '20 12:08 oed

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

ukstv avatar Aug 12 '20 13:08 ukstv

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

oed avatar Aug 12 '20 13:08 oed

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)

OR13 avatar Aug 14 '20 17:08 OR13

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 avatar Aug 14 '20 19:08 oed

Updated the specs and created a PR: https://github.com/ceramicnetwork/CIP/pull/61

oed avatar Sep 23 '20 12:09 oed

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

oed avatar Nov 02 '20 10:11 oed