diff --git a/tvix/store/src/proto.rs b/tvix/store/src/proto.rs index 706041d6a..0b4e11beb 100644 --- a/tvix/store/src/proto.rs +++ b/tvix/store/src/proto.rs @@ -189,6 +189,8 @@ impl Directory { .fold(0, |acc: u32, e| (acc + 1 + e.size) as u32) } + /// Calculates the digest of a Directory, which is the blake3 hash of a + /// Directory protobuf message, serialized in protobuf canonical form. pub fn digest(&self) -> Vec { let mut hasher = blake3::Hasher::new();