Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/pricing / / computeEntriesDigest

Function: computeEntriesDigest()

ts
function computeEntriesDigest(entries): string;

Defined in: packages/pricing/src/snapshot/bundled.ts:276

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