MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / chainHead

Function chainHead

src/cli/maintain-audit.ts:85–87  ·  view source on GitHub ↗
(entries: AuditEntry[])

Source from the content-addressed store, hash-verified

83
84/** The chain head — what a signature commits to. PURE. */
85export 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

Callers 4

historyHeadFunction · 0.85
buildSignedAuditLogFunction · 0.85
verifyAuditLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected