MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / bootstrap_worker_fingerprint_valid

Function bootstrap_worker_fingerprint_valid

src/daemon/bootstrap.c:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static bool bootstrap_worker_fingerprint_valid(const char *fingerprint) {
80 if (!fingerprint || strlen(fingerprint) != 64U) {
81 return false;
82 }
83 for (size_t i = 0; i < 64U; i++) {
84 char ch = fingerprint[i];
85 if (!((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f'))) {
86 return false;
87 }
88 }
89 return true;
90}
91
92static bool bootstrap_worker_budget_valid(const char *text) {
93 if (!text || !text[0]) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected