Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

fix: pass serialized blob to util.cid #75

Merged
merged 2 commits into from
Jun 26, 2018
Merged

fix: pass serialized blob to util.cid #75

merged 2 commits into from
Jun 26, 2018

Conversation

richardschneider
Copy link
Contributor

BREAKING CHANGE: the first argument is now the serialized output NOT the dag node.
See ipld/interface-ipld-format#32

BREAKING CHANGE: the first argument is now the serialized output NOT the dag node.
See ipld/interface-ipld-format#32
Copy link
Member

@vmx vmx left a comment

Choose a reason for hiding this comment

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

I've only comments about JSDocs, they are not blocking the merge. If you don't think it should be changed, feel free to merge the current state.

src/util.js Outdated
@@ -19,14 +20,15 @@ exports = module.exports
/**
* Get the CID of the DAG-Node.
*
* @param {Object} dagNode - Internal representation
* @param {Buffer} blob - Serialized binary data
Copy link
Member

Choose a reason for hiding this comment

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

I would change it to Encoded Protocol Buffers blob or Serialized as Protocol Buffers.

src/util.js Outdated
@@ -19,14 +20,15 @@ exports = module.exports
/**
* Get the CID of the DAG-Node.
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it should say Get CID of Protocol Buffers encoded node?

Copy link
Member

@vmx vmx left a comment

Choose a reason for hiding this comment

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

Please squash merge.

@richardschneider richardschneider merged commit 2ae9542 into master Jun 26, 2018
richardschneider added a commit that referenced this pull request Jun 27, 2018
richardschneider added a commit that referenced this pull request Jun 27, 2018
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.

2 participants