mutualAuthVerifyAttest
Verifies a MutualAuthAttest against policy and trust anchors by running 10 checks: signature, version, nonce, timestamp, certificate, issuer, binding, downgrade, grade policy, capability policy. Returns ok:true or failure reason.
Instructions
Verify a MutualAuthAttest against policy and trust anchors. Runs all 10 verification checks: signature, version negotiation, nonce match, timestamp freshness, certificate validity, issuer anchor check, binding constraints, downgrade detection, attestation grade policy, capability policy. Returns ok:true on success or a failure reason on rejection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attest | No | MutualAuthAttest to verify | |
| expected_peer_nonce_b64 | Yes | The nonce the peer sent in their prior hello or attest | |
| expected_own_nonce_b64 | Yes | The nonce we sent in our own prior hello or attest | |
| policy | No | MutualAuthPolicy (accepted_versions, min_agent_grade, required_capabilities, max_clock_skew_ms, max_session_ms) | |
| trust_anchors | Yes | TrustAnchor[] — local trusted roots | |
| revoked_anchor_ids | No | IDs of anchors revoked since the bundle was issued | |
| now_ms | No | Current unix ms — defaults to Date.now() |