1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Deterministic execution-ledger hashing and chain verification.
use ExecutionEvent;
use ;
/// Hash-chain anchor shared with the Savings Ledger.
pub const GENESIS: &str = "genesis";
/// 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.
/// Verifies an ordered in-memory event sequence.