docs(tvix/store/protos): add docstring for Directory::digest()

Change-Id: I361dbca444a267fea28cd212d563ee2d03497c16
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7952
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-01-29 17:17:16 +01:00 committed by flokli
parent 42d3c06988
commit 9c18888715

View file

@ -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<u8> {
let mut hasher = blake3::Hasher::new();