MCPcopy Create free account
hub / github.com/Noumena-Network/code / computeContentHash

Function computeContentHash

src/utils/commitAttribution.ts:185–187  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

183 * Compute SHA-256 hash of content.
184 */
185export function computeContentHash(content: string): string {
186 return createHash('sha256').update(content).digest('hex')
187}
188
189/**
190 * Normalize file path to relative path from cwd for consistent tracking.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected