ipfs-shipyard / ipfs-shipyard/py-ipfs-http-client

Calculate multihash without connection

Open
#300 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
685
Forks
200
PR merge metrics
No merged PRs in 30d

Description

Is there any chance to use [add](https://github.com/ipfs-shipyard/py-ipfs-http-client/blob/f04ff601556f8429837eb7d4851fe02913f72f63/ipfshttpclient/client/files.py#L239) in a way to calculate the hash of a file without ever having to connect to an IPFS daemon?

I set the [offline](https://github.com/ipfs-shipyard/py-ipfs-http-client/blob/f04ff601556f8429837eb7d4851fe02913f72f63/ipfshttpclient/client/__init__.py#L88) argument though as soon as [add](https://github.com/ipfs-shipyard/py-ipfs-http-client/blob/f04ff601556f8429837eb7d4851fe02913f72f63/ipfshttpclient/client/files.py#L239) is getting called (even with `hash_only`) a connection attempt is made.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.