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

Function stampNewWithHash

src/common/stamps.ts:30–34  ·  view source on GitHub ↗
(
  value: Value,
  hlc: Hlc,
  hash: Hash,
)

Source from the content-addressed store, hash-verified

28): Stamp<Value> => (hlc ? [value, hlc] : [value]);
29
30export const stampNewWithHash = <Value>(
31 value: Value,
32 hlc: Hlc,
33 hash: Hash,
34): Stamp<Value, true> => [value, hlc, hash];
35
36export const getStampHash = (stamp: Stamp<unknown, true>): Hash => stamp[2];
37

Callers 2

stampNewObjectWithHashFunction · 0.90
stampNewObjectWithHashFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…