From ce7be009946221425b1176b79fe44f559dd66c53 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 23 Dec 2022 18:57:35 +0100 Subject: chore(tvix/store/protos): drop non-sha256 NAR hashes 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 Change-Id: I760370bd6cabd02028e001a74c454ef9296eb600 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7619 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/store/protos/pathinfo.proto | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'tvix/store/protos/pathinfo.proto') 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; -- cgit 1.4.1