Spaces:
Running
Running
| import hashlib | |
| import json | |
| def generate_proof(state): | |
| raw = json.dumps(state, sort_keys=True).encode() | |
| return { | |
| "hash": hashlib.sha256(raw).hexdigest(), | |
| "deterministic": True, | |
| "enforcement": "simulation-only" | |
| } |