Skip to main content

Function: packageSha256()

packageSha256(documents): string

Defined in: src/lib/agreements/hash.ts:25

Canonical SHA-256 of a whole generated package: the ordered, already-merged document bodies (kind + final text). Stored on contractor_agreements.package_sha256 to pin the exact artifact the snapshot froze, independent of any later edit to the body templates in code. Each document is length-prefixed (kind:len:body) so no body content can forge a document boundary — distinct document sets can never collide into the same digest.

Parameters

documents

object[]

Returns

string