Update swarm hash.

This commit is contained in:
chriseth
2019-06-27 12:48:51 +02:00
parent 8d18003808
commit aa11ad7d0a
6 changed files with 122 additions and 21 deletions
+10 -2
View File
@@ -26,7 +26,15 @@
namespace dev
{
/// Compute the "swarm hash" of @a _input
h256 swarmHash(std::string const& _input);
/// Compute the "swarm hash" of @a _input (OLD 0x1000-section version)
h256 bzzr0Hash(std::string const& _input);
/// Compute the "bzz hash" of @a _input (the NEW binary / BMT version)
h256 bzzr1Hash(bytes const& _input);
inline h256 bzzr1Hash(std::string const& _input)
{
return bzzr1Hash(asBytes(_input));
}
}