Monday, February 22, 2021

multiformats and ceramic links

https://www.youtube.com/watch?v=HpmM-4LG0nY
(1 - CBOR encoding and refactoring to use multiformats)

https://multiformats.io/#what-are-multiformats

https://proto.school/anatomy-of-a-cid/01

https://cid.ipfs.io/

https://proto.school/merkle-dags

https://github.com/ceramicnetwork/CIP/blob/main/CIPs/CIP-79/CIP-79.md

https://github.com/ceramicnetwork/CIP/blob/main/CIPs/CIP-59/CIP-59.md

https://github.com/multiformats/js-multiformats

https://github.com/multiformats/cid

https://github.com/multiformats/multibase

https://gateway-clay.ceramic.network/api/v0/documents/k3y52l7qbv1fryquw7e2dvh0da7ty5vdxu15ova82f73nbtif0fps502utn8o18g0

 

https://gateway-clay.ceramic.network/api/v0/documents/k6zn3rc3v8qin211rjoeqxwsrvo3vfnrfhhszu1i2xl4qhi4elnsrwcqzm3o51al62d5os3c4f63jn158g9mjjdhjdcyv5stuzqa593xnqergt9rh4wg2wi
https://gateway-clay.ceramic.network/api/v0/documents/kjzl6cwe1jw145tj6ebx9fpg0v61v9snls5tksca8krr0k90qampmwfrfse3kcw
https://gateway-clay.ceramic.network/api/v0/documents/k3y52l7qbv1fry9bohg9oijypusv7l2arvp3xw9nrphaq7vxtsnic6snufi68xbsw
https://gateway-clay.ceramic.network/api/v0/documents/k3y52l7qbv1fry9bohg9oijypusv7l2arvp3xw9nrphaq7vxtsnic6snufi68xbsw
https://gateway-clay.ceramic.network/api/v0/documents/k6zn3rc3v8qin211rjoeqxwsrvo3vfnrfhhszu1i2xl4qhi4elnsrwcqzm3o51al62d5os3c4f63jn158g9mjjdhjdcyv5stuzqa593xnqergt9rh4wg2wi
https://gateway-clay.ceramic.network/api/v0/documents/kjzl6cwe1jw149kkymqdf4aas5jsml90n9fy94v0nnpkduz104ilf22ws9zimro
https://gateway-clay.ceramic.network/api/v0/documents/kjzl6cwe1jw146s19unpt2f2fd242q1t937bkea3zssmlnqpgz6je3d58n9drmg
https://gateway-clay.ceramic.network/api/v0/documents/k2t6wyfsu4pfxmv4076gobzgrl9w95pr48pjmabajc80nxyhy0o2ebwg7tyb3q
https://gateway-clay.ceramic.network/api/v0/documents/k3y52l7qbv1fry9bohg9oijypusv7l2arvp3xw9nrphaq7vxtsnic6snufi68xbsw


Compare https://github.com/multiformats/cid (with https://github.com/multiformats/js-cid) to https://github.com/ceramicnetwork/CIP/blob/main/CIPs/CIP-59/CIP-59.md  (for DocID)

<cidv1> ::= <mb><multicodec-cidv1><mc><mh>
# or, expanded:
<cidv1> ::= <multibase-prefix><multicodec-cidv1><multicodec-content-type><multihash-content-address>

vs

<docid> ::= <multibase-prefix><multicodec-docid><doctype><genesis-cid-bytes>

# e.g. using CIDv1
<docid> ::= <multibase-prefix><multicodec-docid><doctype><multicodec-cidv1><multicodec-content-type><multihash-content-address>



No comments:

Post a Comment