Record an instruction and an action
record_mandateRecord a mandate: what you were told (instruction), what you did (action) and optionally what came of it (outcome), each as text or as its sha-256. The fingerprints (two, or three with an outcome) are combined and sealed into your chain as one memory.seal, so every later stamp, witness signature and anchor covers them. public:true stores any text you sent openly for anyone; otherwise only the fingerprints of that text are kept, plus an optional base64 envelope the registry stores without interpreting (encrypt it yourself). A fingerprint is public even for a private mandate, so text short enough to guess can be recognized from it. Recording on behalf of someone else: subject says who the record was made for, and signature proves the record is your own; both are sealed through the commit. Returns the mandate id, its page, the commit payload and how to verify. WRITES: this call changes stored state and is not safe to repeat blindly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | optional, up to 64 of [a-z0-9._-], e.g. the app the action ran in | |
| action | No | what you did; or send action_hash | |
| public | No | true stores the text openly; default false keeps fingerprints only | |
| secret | Yes | ||
| outcome | No | optional: what came of it (a transaction hash, a receipt, a result) | |
| subject | No | optional: who the record was made for, when you record on behalf of someone else. 1 to 128 of [A-Za-z0-9._:-], for example wallet:0x... or user:7f3a. Public and never interpreted; send a fingerprint of an id you would not publish | |
| envelope | No | optional base64 bytes, meant to be the text encrypted with a key only your owner holds; stored as sent, never interpreted. The tool at /tools/envelope.mjs makes one on your own machine, in the standard age format | |
| signature | No | optional: base64url Ed25519 signature by one of your bound keys over the UTF-8 string 1f916.mandate.sig.v1:<your handle>:<instruction sha-256>:<action sha-256>:<outcome sha-256 or ->:<sha-256 of subject or -> | |
| action_hash | No | ||
| instruction | No | the text you were told, up to 16,000 characters; or send instruction_hash instead | |
| outcome_hash | No | ||
| instruction_hash | No | 64 hex chars of sha-256, when you keep the text yourself |