ethersphere / swarm-cli

Manage your Bee node and interact with the Swarm network via the CLI
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Feature request: calculate Swarm reference hash of content #439

Open crtahlin opened 1 year ago

crtahlin commented 1 year ago

Would like to have a feature available, to calculate Swarm reference hash of content.

Use case: to be able to verify that the hash of downloaded content is as expected.

Cafe137 commented 1 year ago

The new swarm-cli release has a hash function that calculates the Swarm hash of a single file. Do note that this corresponds to the /bytes endpoint, not the /bzz.

This feature will be improved upon for full support.

swarm-cli-hash
n00b21337 commented 1 year ago

This would be needed on directories mostly. For example, if you upload a webpage it is a directory, if you upload NFTs it is a directory etc

Doing just for files isn't really solving the issues we created. Can we have it for directories, please?