Function: agreementHash()
agreementHash(
input):string
Defined in: src/lib/agreements/hash.ts:9
Canonical SHA-256 of a signed agreement. Pins the exact merged text the signer saw, plus their legal name and the signed date, so a later template edit can never change what was agreed. The canonical form is the three fields newline-joined; returns a 64-char hex digest. Server-only (the signature ledger records it); deterministic and unit-tested.
Parameters
input
mergedBody
string
signedDate
string
signedName
string
Returns
string