This repository has been archived by the owner on Aug 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforces CID Version 1 for non-sha2-256 hash algorithms and returns the buffer that makes up the CID instead of the buffer that makes up the multihash. Returning the multihash for v0 CIDs is fine because the codec and version are implicity but if we want to be able to load DAGNodes stored with a v1 CID, we need to return the CID buffer instead.
- Loading branch information
1 parent
abafb48
commit 0d3d3d8
Showing
2 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters