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

Function entryContent

src/cli/maintain-audit.ts:56–58  ·  view source on GitHub ↗

Canonical, order-stable content string an entry commits to. PURE.

(e: Omit<AuditEntry, 'hash'>)

Source from the content-addressed store, hash-verified

54
55/** Canonical, order-stable content string an entry commits to. PURE. */
56function entryContent(e: Omit<AuditEntry, 'hash'>): string {
57 return JSON.stringify([e.seq, e.at, e.scope, e.status, e.filesChanged, e.prUrl, e.verification, e.prevHash]);
58}
59
60function sha256(s: string): string {
61 return createHash('sha256').update(s).digest('hex');

Callers 2

buildAuditChainFunction · 0.85
verifyAuditChainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected