Agent checkout: booking a train ticket on someone's behalf
A principal issues a scoped delegation, the agent presents a verifiable credential, the service verifies identity and authorisation at the point of action, the action is written to an audit trail, and revoking the delegation stops the next action. Everything below runs locally in your browser.
The canonical flow
1Principal issues a scoped delegation Alicia grants railbot-7 permission to buy one HEL→TRE ticket, ≤ €60, before the mandate expires.pending
2Agent presents a verifiable credential A short-lived delegated token: actor = agent, subject = principal, bound to the agent's key.pending
3Service verifies identity and authorisation Signature, issuer, audience, expiry, proof-of-possession, then this action against the scope.pending
4Action logged to the audit trail Actor, principal, mandate, action, decision, amount, outcome — with a correlation ID.pending
5Revocation stops the next action Withdraw the delegation; the very next booking is refused.pending