mutualAuthVerifyAttest
Verifies mutual auth attestations against policy and trust anchors, running all 10 checks including signature, nonce, certificate, and downgrade. Returns ok 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 | Yes | MutualAuthAttest to verify | |
| now_ms | No | Current unix ms — defaults to Date.now() | |
| policy | Yes | 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 | |
| expected_own_nonce_b64 | Yes | The nonce we sent in our own prior hello or attest | |
| expected_peer_nonce_b64 | Yes | The nonce the peer sent in their prior hello or attest |