Live demo of the attestplane package in Pyodide. Create EventDrafts and compute cryptographic hashes.
from attestplane import EventDraft
draft = EventDraft(
event_type="EVAL_EVENT",
actor="alice@example.com",
payload={"score_pct": 95}
)
from attestplane import hash_event event_hash = hash_event(draft) print(event_hash.hex())