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

Function bootstrap_worker_fingerprint_valid

src/daemon/bootstrap.c:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static bool bootstrap_worker_fingerprint_valid(const char *fingerprint) {
68 if (!fingerprint || strlen(fingerprint) != 64U) {
69 return false;
70 }
71 for (size_t i = 0; i < 64U; i++) {
72 char ch = fingerprint[i];
73 if (!((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f'))) {
74 return false;
75 }
76 }
77 return true;
78}
79
80static bool bootstrap_worker_budget_valid(const char *text) {
81 if (!text || !text[0]) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected