Skip to content

Can´t decode md5 multihash. #35

@benekent

Description

@benekent

It seems that github.com/multiformats/js-multihash contains an issue validating md5 multihashes. As the repo is marked as archived, there is no way of having it investigated. As a result, md5 checksums are not displayed in the stac-browser.

multihash.decode() uses varint.decode() to get the funtion code and validate it with isValidCode().

A md5 multihash starts with the prefix d510.... (or [213, 16, ...] as Uint8Array). However, varchar.decode([213,16,...) returns 2133 as function code, which is not recognized as valid code (0xd5 or 213) and multihash.decode() fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions