aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/SwarmHash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdevcore/SwarmHash.cpp')
-rw-r--r--libdevcore/SwarmHash.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdevcore/SwarmHash.cpp b/libdevcore/SwarmHash.cpp
index 78188668..1c718200 100644
--- a/libdevcore/SwarmHash.cpp
+++ b/libdevcore/SwarmHash.cpp
@@ -24,6 +24,8 @@
using namespace std;
using namespace dev;
+namespace
+{
bytes toLittleEndian(size_t _size)
{
@@ -59,6 +61,8 @@ h256 swarmHashIntermediate(string const& _input, size_t _offset, size_t _length)
return swarmHashSimple(ref, _length);
}
+}
+
h256 dev::swarmHash(string const& _input)
{
return swarmHashIntermediate(_input, 0, _input.size());