Skip to content

Conversation

@jcace
Copy link
Contributor

@jcace jcace commented Dec 10, 2022

The /verify/by-cid endpoint now properly determines the CID version based on the prefix, instead of trying to infer based on the mutlihash and length.

The previous approach caused it to mistakenly determine that it was V1 if the length was 32 as the condition was OR hash.length = 32.

closes #731

@jcace jcace marked this pull request as ready for review December 10, 2022 00:30
Copy link
Contributor

@alvin-reyes alvin-reyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alvin-reyes alvin-reyes merged commit 2b82ede into dev Dec 10, 2022
@alvin-reyes alvin-reyes deleted the fix/by-cid-version-error branch December 10, 2022 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CID verifier - returning 500 error

3 participants