MCPcopy
hub / github.com/Swatinem/rust-cache / digest

Function digest

src/config.ts:378–380  ·  view source on GitHub ↗

* Returns a hex digest of the given hasher truncated to `HASH_LENGTH`. * * @param hasher The hasher to digest. * @returns The hex digest.

(hasher: crypto.Hash)

Source from the content-addressed store, hash-verified

376 * @returns The hex digest.
377 */
378function digest(hasher: crypto.Hash): string {
379 return hasher.digest("hex").substring(0, HASH_LENGTH);
380}
381
382interface RustVersion {
383 host: string;

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected