Ability to specify a checksum while adding a file for integrity testing
Open
kind/feature
need/community-input
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
When files are shared online, there's often a hash published with it. This allows checking if the integrity was compromised on the mirror server or while downloading.
When I import a file via an URL directly to IPFS it's impossible to check if the file got the correct hash. It would be nice if we can specify the expected hash and at the end of the operation the file is either added or an error message will be displayed.
It makes sense to support at least `md5`, `sha1`, `sha256` and `sha512`.
Contributor guide
Assessment
This issue has not been assessed yet.