Skip to content

Load CID with truncated digests #894

@agmap

Description

@agmap

Serviceworker Gateway doesn't load CIDs with truncated digests.

Example for sha2-512 truncated to 32 bytes length. (sha512half) -->Multihash is: 1320

inbrowser.link:
https://bafkrgierxelxm3qoaer74lhn25pzycmghn5554d2wo4cnrtu4eb74a6wka.ipfs.inbrowser.link/
--> Doesn't load

ipfs.io
https://ipfs.io/ipfs/bafkrgierxelxm3qoaer74lhn25pzycmghn5554d2wo4cnrtu4eb74a6wka
--> can load

This can help:
ipfs/helia#832
multiformats/js-multiformats#329

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upbugSomething isn't workingkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions