aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/content-address.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/content-address.hh')
-rw-r--r--src/libstore/content-address.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstore/content-address.hh b/src/libstore/content-address.hh
index 1fdd16e92..eb56fe571 100644
--- a/src/libstore/content-address.hh
+++ b/src/libstore/content-address.hh
@@ -7,7 +7,7 @@
namespace nix {
/*
- * Mini content address
+ * Content addressing method
*/
/* We only have one way to hash text with references, so this is a single-value
@@ -50,6 +50,10 @@ std::string renderContentAddressMethodAndHash(ContentAddressMethod cam, HashType
std::pair<ContentAddressMethod, HashType> parseContentAddressMethod(std::string_view caMethod);
+/*
+ * Mini content address
+ */
+
struct TextHash {
Hash hash;
};
@@ -61,7 +65,6 @@ struct FixedOutputHash {
std::string printMethodAlgo() const;
};
-
/*
We've accumulated several types of content-addressed paths over the years;
fixed-output derivations support multiple hash algorithms and serialisation