Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

fix: return cids from builder #220

Merged
merged 1 commit into from
Jul 24, 2018
Merged

Conversation

achingbrain
Copy link
Collaborator

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.

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.
@ghost ghost assigned achingbrain Jul 23, 2018
@achingbrain achingbrain requested a review from alanshaw July 23, 2018 16:45
@ghost ghost added the status/in-progress In progress label Jul 23, 2018
@achingbrain achingbrain merged commit c9cb891 into master Jul 24, 2018
@ghost ghost removed the status/in-progress In progress label Jul 24, 2018
@achingbrain achingbrain deleted the return-cids-from-builder branch July 24, 2018 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant