Konubinix' opinionated web of thoughts

Ipfs/Kubo Double Hashing

Fleeting

The “modern” double-hashed items (b58-encoded-multihash) can be created with existing CLI tools like Kubo:

Convert any CID to its multihash with:

$ ipfs cid format -f ‘%M’ -b base58btc bafybeihrw75yfhdx5qsqgesdnxejtjybscwuclpusvxkuttep6h7pkgmze QmecDgNqCRirkc3Cjz9eoRBNwXGckJ9WvTdmY16HP88768 Then, create a second multihash to be used in //DOUBLE-HASH rule that will be blocking specific content path under the extracted multihash:

$ printf “QmecDgNqCRirkc3Cjz9eoRBNwXGckJ9WvTdmY16HP88768/my/path” | ipfs block put –mhtype sha2-256 | ipfs cid format -f ‘%M’ -b base58btc QmSju6XPmYLG611rmK7rEeCMFVuL6EHpqyvmEU6oGx3GR8 The double-hash rule /QmSju6XPmYLG611rmK7rEeCMFVuL6EHpqyvmEU6oGx3GR8 will block /ipfs bafybeihrw75yfhdx5qsqgesdnxejtjybscwuclpusvxkuttep6h7pkgmze/my/path.

The QmecDgNqCRirkc3Cjz9eoRBNwXGckJ9WvTdmY16HP88768 is the multihash contained in bafybeihrw75yfhdx5qsqgesdnxejtjybscwuclpusvxkuttep6h7pkgmze.

https://specs.ipfs.tech/compact-denylist-format/ ([2025-02-19 Wed])