MCPcopy
hub / github.com/tinyplex/tinybase / getValueHash

Function getValueHash

src/common/hash.ts:58–62  ·  view source on GitHub ↗
(
  value: ValueOrUndefined,
  valueHlc: Hlc,
  // legacy v5; jsonStringWithUndefined in v7
)

Source from the content-addressed store, hash-verified

56): Hash => getHash(valueId + ':' + valueHash);
57
58export const getValueHash: typeof getValueHashDecl = (
59 value: ValueOrUndefined,
60 valueHlc: Hlc,
61 // legacy v5; jsonStringWithUndefined in v7
62): Hash => getHash(jsonStringWithMap(value ?? null) + ':' + valueHlc);
63
64export const getCellHash: typeof getCellHashDecl = getValueHash;
65

Callers 1

mergeCellsOrValuesFunction · 0.90

Calls 2

getHashFunction · 0.90
jsonStringWithMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…