Skip to content

Engagements

An engagement is a signed agreement between a subject and another identity about what it may do.

Field Meaning
a The oracle or contract
b The other identity, which signs
methods Permitted methods
limits max_calls and freshness_ms, both optional
expires Time in milliseconds, at most ten years ahead
nonce Random
Subject Methods
Oracle observe, read_oracle, read_history
Contract read_state, read_history

Create

  1. The other identity signs the agreement.
  2. The administrator accepts it with POST /{kind}/{aid}/engage.
  3. The subject anchors it in its key event log and returns a counter signature and engagement_id.

End

The administrator revokes with POST /{kind}/{aid}/engagements/{id}/revoke. The other party withdraws with a signed request to .../withdraw. Either way, a revocation is anchored, and members of the committee refuse inputs under this engagement from then on.

Limits

max_calls limits the number of calls. freshness_ms limits the age of the value that read_oracle may return. Without it, staleness_ms of the policy applies.