Skip to content

nooschain v0.1.0


nooschain / records/indexes / normalizeRecordIndexes

Function: normalizeRecordIndexes()

normalizeRecordIndexes(recordId, bucketId, publicIndexes, indexSchema): NormalizedRecordIndex[]

Defined in: records/indexes.ts:208

Converts public index values into deterministic typed database rows.

Values are sorted by key to keep row generation deterministic. The function never inspects plaintext or encrypted payload bytes; it only handles explicit public metadata supplied alongside the encrypted record.

Parameters

recordId

string

bucketId

string

publicIndexes

Record<string, PublicIndexValue>

indexSchema

{ indexes: object[]; } | null

Returns

NormalizedRecordIndex[]

Audience-first NOOSChain documentation.