Skip to content

Commit

Permalink
Clarify how Digest.hash is encoded generally (#285)
Browse files Browse the repository at this point in the history
It seems bad form to special-case SHA-256 while not saying anything about other digest functions.
  • Loading branch information
tjgq authored Feb 15, 2024
1 parent d20ae8b commit 9ff14ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/bazel/remote/execution/v2/remote_execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,8 @@ message SymlinkNode {
// serializing, but care should be taken to avoid shortcuts. For instance,
// concatenating two messages to merge them may produce duplicate fields.
message Digest {
// The hash. In the case of SHA-256, it will always be a lowercase hex string
// exactly 64 characters long.
// The hash, represented as a lowercase hexadecimal string, padded with
// leading zeroes up to the hash function length.
string hash = 1;

// The size of the blob, in bytes.
Expand Down

0 comments on commit 9ff14ce

Please sign in to comment.