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

Function getStampHash

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:995–995  ·  view source on GitHub ↗
(stamp)

Source from the content-addressed store, hash-verified

993var stampNew = (value, hlc) => hlc ? [value, hlc] : [value];
994var stampNewWithHash = (value, hlc, hash) => [value, hlc, hash];
995var getStampHash = (stamp) => stamp[2];
996var replaceHlcHash = (oldHlc, newHlc) => newHlc > oldHlc ? (oldHlc ? getHash(oldHlc) : 0) ^ getHash(newHlc) : 0;
997var getLatestHlc = (hlc1, hlc2) => (
998 /* istanbul ignore next */

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…