diff --git a/src/value.cpp b/src/value.cpp
index fc5da1d2e3142d793ebfcc5a6982c824f960c84f..3d0c40002921768c5be39d303ad799e54a08673d 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -239,6 +239,21 @@ Value::toJson() const
     return val;
 }
 
+uint64_t
+unpackId(const Json::Value& json, const std::string& key) {
+    uint64_t ret = 0;
+    try {
+        const auto& t = json[key];
+        if (t.isString()) {
+            ret = std::stoull(t.asString());
+        } else {
+            ret = t.asLargestUInt();
+        }
+    } catch (...) {}
+    return ret;
+}
+#endif
+
 bool
 Value::checkSignature()
 {
@@ -274,21 +289,6 @@ Value::decrypt(const crypto::PrivateKey& key)
     return decryptedValue;
 }
 
-uint64_t
-unpackId(const Json::Value& json, const std::string& key) {
-    uint64_t ret = 0;
-    try {
-        const auto& t = json[key];
-        if (t.isString()) {
-            ret = std::stoull(t.asString());
-        } else {
-            ret = t.asLargestUInt();
-        }
-    } catch (...) {}
-    return ret;
-}
-#endif
-
 bool
 FieldValue::operator==(const FieldValue& vfd) const
 {