Skip to content

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Sep 7, 2017

Specify multihash hashing alogrithm

This allows the optional param --hash (CLI) or ?hash= (HTTP API) to be passed to files.add in order to specify the hash algorithm that should be used when generating the multihash(es) for the added content.

Passing this option will set the CID version option to true, as per the Go implementation.

Change object/get and object/data to accept CIDs

This brings js-ipfs more in line with go-ipfs. Where both object/get and object/data accept a CID. It's also needed by js-ipfs-api when adding files (see further discussion in tableflip/js-ipfs-api#2).

requires tableflip/js-ipfs-api#2

@alanshaw alanshaw changed the title Files add hash alg1 Support specify hash algorithm in files.add Sep 8, 2017
@alanshaw alanshaw force-pushed the files-add-hash-alg1 branch from 634fca1 to 3f64347 Compare September 8, 2017 10:19
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.

2 participants