live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/agent-core


@orangecheck/agent-core / VerifyActionInput

Interface: VerifyActionInput

Defined in: agent-core/src/verify.ts:237

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
<a id="property-action"></a> actionActionEnvelope--agent-core/src/verify.ts:238
<a id="property-content"></a> content?Uint8Array&lt;ArrayBufferLike>--agent-core/src/verify.ts:263
<a id="property-decryptscopeswith"></a> decryptScopesWith?&#123; device_id: string; secretKey: Uint8Array; &#125;v1.2 private-scope decryption key. Applied to the root delegation AND every subdelegation in the chain that carries scopes_encrypted. If a link is private-mode and no key matches its recipients, verification fails E_SCOPES_UNREADABLE — the chain's transitive narrowing cannot be checked without the plaintext.-agent-core/src/verify.ts:274
decryptScopesWith.device_idstring--agent-core/src/verify.ts:275
decryptScopesWith.secretKeyUint8Array--agent-core/src/verify.ts:276
<a id="property-delegation"></a> delegationDelegationEnvelopeThe ROOT delegation rooting the authority chain. Always required.-agent-core/src/verify.ts:240
<a id="property-maxchaindepth"></a> maxChainDepth?numberMaximum permitted chain depth (number of subdelegations). Default DEFAULT_MAX_CHAIN_DEPTH (5). Verifiers MAY lower; MUST NOT raise silently above their advertised cap. Chains exceeding this fail with E_SUBDELEGATION_DEPTH_EXCEEDED before any per-link work is performed.-agent-core/src/verify.ts:256
<a id="property-resolveanchorblockheight"></a> resolveAnchorBlockHeight?(env: | ActionEnvelope | RevocationEnvelope) => number | nullIf action and revocation are both OTS-anchored, pass a function that returns the comparable block height of each via proof parsing. Defaults: use envelope.ots.block_height.-agent-core/src/verify.ts:266
<a id="property-revocations"></a> revocations?RevocationEnvelope[]Known revocations targeting any envelope in the chain (root + each subdelegation). The verifier checks every link per SUB-DELEGATION.md §2.2 step 5 — a revocation against ANY link invalidates the action.-agent-core/src/verify.ts:262
<a id="property-scopemode"></a> scopeMode?"strict" | "permissive"-VerifyBase.scopeModeagent-core/src/verify.ts:50
<a id="property-skipsignatureverification"></a> skipSignatureVerification?boolean-VerifyBase.skipSignatureVerificationagent-core/src/verify.ts:49
<a id="property-subdelegationchain"></a> subdelegationChain?SubdelegationEnvelope[]Optional v1.1 sub-delegation chain from S_1 (immediate child of delegation) to S_leaf (the envelope action.delegation_id cites). When provided, the verifier walks each link checking parent-id linkage, principal-equals- parent-agent, scope containment, and temporal containment. The action's delegation_id MUST equal the leaf's id; the action's signer MUST equal the leaf's agent. See SUB-DELEGATION.md §2.2.-agent-core/src/verify.ts:249
<a id="property-verifybip322"></a> verifyBip322?(msg: string, signatureB64: string, address: string) => Promise&lt;boolean>-VerifyBase.verifyBip322agent-core/src/verify.ts:48
<a id="property-verifyotsanchor"></a> verifyOtsAnchor?(proofB64: string, blockHeight: number, blockHash: string) => Promise&lt;boolean>--agent-core/src/verify.ts:264