Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specify hash algorithm in files.add #4

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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
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