about summary refs log tree commit diff
path: root/tvix/store/protos/pathinfo.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/protos/pathinfo.proto')
-rw-r--r--tvix/store/protos/pathinfo.proto18
1 files changed, 2 insertions, 16 deletions
diff --git a/tvix/store/protos/pathinfo.proto b/tvix/store/protos/pathinfo.proto
index 7a9702600605..74b75c2b5ddd 100644
--- a/tvix/store/protos/pathinfo.proto
+++ b/tvix/store/protos/pathinfo.proto
@@ -41,20 +41,6 @@ message Node {
 // moving to another signature scheme is desired.
 // Even then, it still makes sense to hold this data, for old clients.
 message NARInfo {
-    // The hash of the NAR file.
-    message NarHash {
-        HashAlgo algo = 1;
-        bytes digest = 2;
-    }
-
-    enum HashAlgo {
-        UNKNOWN = 0;
-        MD5 = 1;
-        SHA1 = 2;
-        SHA256 = 3;
-        SHA512 = 4;
-    }
-
     // This represents a (parsed) signature line in a .narinfo file.
     message Signature {
         string name = 1;
@@ -64,8 +50,8 @@ message NARInfo {
     // This size of the NAR file, in bytes.
     uint32 nar_size = 1;
 
-    // The hash(es) of a NAR file.
-    repeated NarHash nar_hashes = 2;
+    // The sha256 of the NAR file representation.
+    bytes nar_sha256 = 2;
 
     // The signatures in a .narinfo file.
     repeated Signature signatures = 3;