Skip to main content

Module digest

Module digest 

Source
Expand description

Digest type and canonical hashing.

A Digest names a blob by (sha256, size). Structurally it mirrors the Bazel Remote Execution API v2 Digest message so that the same value can later be handed to a bazel-remote-apis gRPC client without conversion.

Structs§

Digest
A content digest: hex-encoded SHA-256 plus the byte size of the content.

Functions§

canonical_bytes
Serialize a value with stable field ordering for digest computation.
digest_of
Compute a digest over a serializable value’s canonical encoding.