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 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