Skip to guide

Developer documentation

Identity, permission and evidence

Use identity to decide who is calling. Use a mandate to check the owner's rules. Keep your own access policy.

Passport and door

A passport is an Ed25519 signing identity. Its private key signs proofs and stays with the agent. Its public key is the passport ID. A door is your website or API.

An Agent-Token is a short-lived bearer credential signed by the issuer. The audience binds it to one receiving service. Anyone who steals that token can present it to the same audience until it expires. Use HTTPS and avoid logging tokens.

verifyAgent checks a token. verifyAgentRequest checks an HTTP Message Signature, the proof attached to a particular request. Use the original public HTTPS URL at your receiving service.

Mandate and act

A mandate is the owner's set of rules for an agent. A clause is one rule in that set. An act is the operation the agent asks your service to perform, such as read, buy or send_message.

A token can carry mnd, a mandate ID and a hash of its public clauses. A hash is a fixed fingerprint of those clauses. A live check compares the signed intent with the current mandate.

Derive the act and amount from the operation your service is about to run. Amounts use integer minor units: 4999 EUR means €49.99. There is no currency conversion.

A peek uses commit: false and counts nothing. A commit uses commit: true and reserves and counts one act. Identical successful signed commits return the stored answer while the mandate remains active and current. Stops, revocation and expiry take priority.

Receipt

A receipt is a signed record. A successful committing mandate check returns a door-act receipt for a reservation. Some outside refusals after the live stop and passport checks include a receipt when signing is available. Earlier refusals and database refusals may have none. Check for receipt before verifying it.

A door-act receipt proves a reservation or a live refusal. It does not prove a completed purchase, a delivered message or the integrity of HTTP body bytes. Its cost: 0 describes model/API usage; door.amount records the act's money separately.

checkMandate does not verify the returned receipt. Call verifyReceipt with an explicit trusted issuer.

Valid is not permission

A valid passport is not permission. Your service decides what to allow.

A signature proves who signed. An inside mandate decision says the owner's rules cover this act. Your service still applies its own authentication and access rules, verifies the payload it will execute, and handles its own payment or delivery.

This request-signature profile covers the URL, method and signed headers. It does not cover body bytes. Compare the signed act and amount with the operation you will actually perform.

Identity, permission and evidence · Developers · PassControl