What are the "zb" hashes?

Hello!

I’m looking at the result of ipfs pin ls and it prints many hashes with the zb prefix, like:

zb2rhf5w4wiWwnobMTG1hFbVnaUkjbRUYtz1uNxEGTp9yumGS

What are those? Why do I see some normal Qm hashes and some of these other ones?

pura vida

In short, Qm ones are CIDv0 (aka raw multihash), the rest is CIDv1.

CID is an abstraction on top of multihash, multicodec and multibase:

CID is a self-describing content-addressed identifier. It uses cryptographic hashes to achieve content addressing. It uses several multiformats to achieve flexible self-description, namely multihash for hashes, multicodec-packed for data content types, and multibase to encode the CID itself into strings.

More details:

2 Likes