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

Function replaceHlcHash

src/common/stamps.ts:38–39  ·  view source on GitHub ↗
(oldHlc: Hlc, newHlc: Hlc)

Source from the content-addressed store, hash-verified

36export const getStampHash = (stamp: Stamp<unknown, true>): Hash => stamp[2];
37
38export const replaceHlcHash = (oldHlc: Hlc, newHlc: Hlc) =>
39 newHlc > oldHlc ? (oldHlc ? getHash(oldHlc) : 0) ^ getHash(newHlc) : 0;
40
41export const getLatestHlc = (
42 hlc1: Hlc | undefined,

Callers 2

mergeContentOrChangesFunction · 0.90
mergeCellsOrValuesFunction · 0.90

Calls 1

getHashFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…