(entries: AuditEntry[])
| 83 | |
| 84 | /** The chain head — what a signature commits to. PURE. */ |
| 85 | export function chainHead(entries: AuditEntry[]): string { |
| 86 | return entries.length ? entries[entries.length - 1]!.hash : AUDIT_GENESIS; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Recompute every hash + link and report the first broken index. PURE. `valid` means the chain is |
no outgoing calls
no test coverage detected