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

Function hashString

src/services/api/dumpPrompts.ts:10–12  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

8import { isInternalBuild } from 'src/capabilities/static.js'
9
10function hashString(str: string): string {
11 return createHash('sha256').update(str).digest('hex')
12}
13
14// Cache last few API requests for ant users (e.g., for /issue command)
15const MAX_CACHED_REQUESTS = 5

Callers 1

dumpRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected