polkadot-js / tools

Various cli tools for Polkadot and Substrate chains, including basic node monitoring, making API queries via a cli app and other command-line tools
Apache License 2.0
278 stars 69 forks source link

Hash a File via CLI Tool #376

Open joepetrowski opened 2 years ago

joepetrowski commented 2 years ago

As pointed out in the README, sometimes files are inputs to functions. However, sometimes (e.g. authorize_upgrade) a file's hash is needed. See e.g. this Stack Exchange question.

Feature Request: Add a CLI command to hash a file (presumably with Blake 256 as default).

jacogr commented 2 years ago

PRs welcome to add, should not be much work, but will take me ages to get to - so if urgent, PRs are welcome.