(s: string)
| 58 | } |
| 59 | |
| 60 | function sha256(s: string): string { |
| 61 | return createHash('sha256').update(s).digest('hex'); |
| 62 | } |
| 63 | |
| 64 | /** Build a tamper-evident chain from runs (chronological, oldest first). PURE. */ |
| 65 | export function buildAuditChain(runs: AuditableRun[]): AuditEntry[] { |
no test coverage detected