MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getStampHash

Function getStampHash

src/common/stamps.ts:36–36  ·  view source on GitHub ↗
(stamp: Stamp<unknown, true>)

Source from the content-addressed store, hash-verified

34): Stamp<Value, true> => [value, hlc, hash];
35
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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…