Closed lidel closed 1 year ago
@lidel I don't think the size is the issue here. it fails for me even for a small file.
Error:
Failed to decode CID Error: unknown multihasher code '30'
at hash-importer.js:32:13
at h (regeneratorRuntime.js:44:17)
at Generator.<anonymous> (regeneratorRuntime.js:125:22)
at Generator.next (regeneratorRuntime.js:69:21)
at r (asyncToGenerator.js:3:20)
at s (asyncToGenerator.js:22:9)
at asyncToGenerator.js:27:7
Supported hashers are in https://github.com/ipfs/ipld-explorer-components/blob/master/src/lib/hash-importer.ts
Unfortunately we don't have a blake3 hasher in JS as far as I'm aware; yet. Although I did just release multiformats@>10 versions of both the full blake2 (s & b) set and sha3, they could be added.
Blake3 has been allowed in Kubo since https://github.com/ipfs/kubo/issues/8650#issuecomment-1216682943. No super urgent today, but the more people use it, the more often our users we will hit this error.
well lookie lookie https://github.com/web3-storage/blake3-multihash
so that could be added to hash-importers.ts too and it should be 👌
Add something big with
ipfs add --hash blake3 --chunker size-1048576
and try to explore the CID.Ref. https://explore.ipld.io/#/explore/bafyb4idpl4jjcsxsqa3ju2ey2n7npnpsruhgyqc7gfo3axt76hpavm4p7q
It errors in bot webui and on the website: