Compute the chain hash for an event. Hash = SHA-256(prevHash + canonical JSON of event without chainHash).
Canonical JSON: keys sorted alphabetically, no whitespace. This ensures deterministic hashing regardless of object key insertion order.
Compute the chain hash for an event. Hash = SHA-256(prevHash + canonical JSON of event without chainHash).
Canonical JSON: keys sorted alphabetically, no whitespace. This ensures deterministic hashing regardless of object key insertion order.