Stage a rule document
Sends a sealed rule document to the engine. The engine opens it, checks it, and
returns the attestation (engineSig) that the on-chain commit needs. The Anafi API
passes the envelope through without reading it.
A staged document does nothing until the owner commits it on chain with
AnafiDslRegistry.commitDsl(commitment, attestationValidUntil, engineSig, adapter).
See DSL registry.
- Who may call: anyone. The route needs no sign-in, because only the owner can commit.
- Before: build the stage frame, seal it under the
infotaganafi/dsl-seal/<network>/plus the 20 address bytes ofaa, and keep the response key. See Sealed requests. - Check the reply before the owner signs:
commitmentmust equal your ownkeccak256(salt ‖ yaml), andadaptermust equal the adapter that you sealed. - Guarantee:
engineSigis valid forcommitDsluntilattestationValidUntil, about 30 minutes after the stage, and only while the on-chain document is still the parent that you named.
Each call stages again. The engine limits how many staged documents it keeps, and
answers 429 with staged_dsl_cap_reached when the limit is reached.
Path Parameters
Body
The body of every route that carries a sealed request. The Anafi API passes sealed to the engine unchanged and takes the account from the path.
An HPKE-sealed request. Each field is a JSON array of byte values (integers from 0 to 255), not a hex string. The key names are snake_case. See Sealed requests.
Response
The engine staged and attested the document.
The attestation of the engine for one staged document. Pass the values to AnafiDslRegistry.commitDsl without change.