about summary refs log tree commit diff
path: root/tvix/store/protos/pathinfo.proto
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-12-23T17·57+0100
committerflokli <flokli@flokli.de>2022-12-28T13·55+0000
commitce7be009946221425b1176b79fe44f559dd66c53 (patch)
treea80d197dd8022669f34591c225c4d6df73168072 /tvix/store/protos/pathinfo.proto
parent27bfc8cfcdfae849d90bfee67c323f93ffc816dd (diff)
chore(tvix/store/protos): drop non-sha256 NAR hashes r/5524
Nix actually doesn't support anything else than sha256 NAR hashes, so
there's little reason to communicate anything else in here.

Co-Authored-By: edef <edef@unfathomable.blue>
Change-Id: I760370bd6cabd02028e001a74c454ef9296eb600
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7619
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
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;