Live_System / runtime_fingerprint.py
LordXido's picture
Create runtime_fingerprint.py
bf81ba1 verified
raw
history blame contribute delete
596 Bytes
import hashlib
import os
FILES = [
"app.py",
"agent_loop.py",
"omega_memory.py",
"CodexQuantum3D_Engine.py",
"codexmesh_sync.py",
"ws_router.py"
]
def sha256_file(path):
h = hashlib.sha256()
with open(path, "rb") as f:
while chunk := f.read(8192):
h.update(chunk)
return h.hexdigest()
def main():
print("πŸ” CodexMesh Runtime Fingerprint β€” v1.0.0")
for f in FILES:
if os.path.exists(f):
print(f"{f}: {sha256_file(f)}")
else:
print(f"{f}: MISSING")
if __name__ == "__main__":
main()