Skip to main content

hash_event

Function hash_event 

Source
pub fn hash_event(event: &ExecutionEvent) -> Result<String, Error>
Expand description

Hashes one event using the Savings Ledger’s SHA-256 primitive.

The canonical event bytes are compact JSON emitted in declaration order. The preceding hash is also supplied as the hash primitive’s domain input, matching SavingsEvent chaining semantics.