Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/pricing / / computeEntriesDigest

Function: computeEntriesDigest()

ts
function computeEntriesDigest(entries): string;

Defined in: pricing/src/snapshot/bundled.ts:151

Internal

Compute a deterministic SHA-256 of the entries. Sorting the entry keys before serialisation keeps the digest stable across Node versions / object-property-iteration orderings.

Parameters

ParameterType
entriesreadonly ModelPrice[]

Returns

string