A receipt anyone can check, offline.
Each answer carries the node's signature over the app, the log index and a hash of the result, made with a key the node's hardware attestation vouches for. Keep it, hand it to an auditor, check it a year from now.
See the check: 12 lines of Python
import json, struct
from cryptography.hazmat.primitives.asymmetric import ed25519
r = json.load(open("view.json"))["receipt"]
u64 = lambda n: struct.pack(">Q", n)
msg = (b"calimero.receipt.v1\0" + r["app"].encode() + b"\0"
+ u64(r["index"]) + r["resultHash"].encode()
+ b"\0" + u64(r["node"]))
key = ed25519.Ed25519PublicKey.from_public_bytes(
bytes.fromhex(r["key"]))
key.verify(bytes.fromhex(r["signature"]), msg) # raises if altered
print("signature ok") # signature ok
Run on the receipt shown here; change any field and it raises InvalidSignature. The key must be one that meroctl attest app lists for the app.