Skip to main content

Function: definitionHash()

function definitionHash(def): string;

Defined in: packages/core/src/submission/hash.ts:241

"sha256:" + hex(SHA-256(JCS(def without meta.updatedAt))).

Synchronous, as docs/17 §2.5 types it — createFormEngine() stamps the hash during construction and cannot await. definitionHashSync is the same function under the name the engine-facing modules use.

Parameters

ParameterType
defFormDefinition

Returns

string