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

Add hash algorithm option for cid #62

Closed
wants to merge 1 commit into from
Closed

Conversation

zcstarr
Copy link

@zcstarr zcstarr commented Mar 26, 2018

This is actually in relation to changing ipld/js-ipld#82 , where the ipfs resolver put interface needs to pass through the hashAlg to the various ipld resolver utils. This will be a breaking change as the the interface would change from (dagNode,callback) to (dagNode, hashAlg, callback) . If this change makes since, then I'll also patch up the other ipld packages. @diasdavid

@vmx
Copy link
Member

vmx commented Mar 26, 2018

@zcstarr Please see ipld/interface-ipld-format#22 for the upcoming changes of the IPLD format spec. Those changes (once accpeted and merged) would then needed to be implemented for all currently supported formats (Bitcoin, CBOR, Ethereum, Zcash, Git, PB)

@daviddias daviddias added the status/in-progress In progress label Apr 10, 2018
@vmx vmx added status/ready Ready to be worked and removed status/in-progress In progress labels Apr 11, 2018
@vmx
Copy link
Member

vmx commented May 7, 2018

@zcstarr Sorry for taking so long. Now that the spec got updated, there's a defaultHashAlg property now (https://github.com/ipld/interface-ipld-format/blob/d962c093bbb3dcd19c2d4eae8fc161a3a5f70526/README.md#defaulthashalg) that can be used of no value was passes it. Tracking issue for that is ipld/interface-ipld-format#37. After that one is done (at least for dag-cbor), this PR could be updated.

@richardschneider
Copy link
Contributor

PR #66 resolves #62 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/ready Ready to be worked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants