Hacker News new | ask | show | jobs
by 1vuio0pswjnm7 1269 days ago
Above I stated, "IPFS now uses base58btc exclusively." A more precise statement would have been something like, "IPFS CIDs originally used base58btc exclusively." It looks like IPFS is moving to a new CID protocol that allows use of non-BTC hashes. That's a step in the right direction, IMHO.

"In CIDv0, hashes are always encoded with base58btc. Always."

https://web.archive.org/web/20200810110206/https://proto.sch...

"Converting CID versions

You can convert any CIDv0 to CIDv1, because the implicit prefixes from v0 become explicit in v1. However, because CIDv1 supports multiple codecs and multiple bases and CIDv0 does not, not all CIDv1 can be converted to CIDv0. In fact, only CIDv1 that have the following properties can be converted to CIDv0:

multibase = base58btc multicodec = dag-pb multihash-algorithm = sha2-256 multihash-length = 32 (32 bytes, equivalent to 256 bits)"

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

Thank you @2color for the correction.