AIDR relying-party verifier for Python (0.1.0) — aidr_verifier

Verify an AI agent's identity on your own server, offline: the agent's credential (signed by the
registry) and its RFC 9421 request signature. Python 3.10+.

  pip install cryptography httpx          # plus fastapi for the ASGI / FastAPI middleware
  export PYTHONPATH=$PWD                  # this directory: aidr_verifier, aidr_core, aidr_crypto

ASGI (FastAPI, Starlette): the middleware keeps keys and revocation state in sync in the
background and puts the result in request.state.aidr:

  from aidr_verifier import AidrMiddleware, RelyingPartyConfig
  app.add_middleware(AidrMiddleware, config=RelyingPartyConfig(issuer="https://api.evolivcore.com", min_agal=1))

Or verify a request yourself with AgentVerifier (see aidr_verifier/__init__.py). A runnable site is
in examples/protected_site.py (its docstring names paths in the AIDR repository; set AIDR_ISSUER
to https://api.evolivcore.com).

Licensed under the Apache License, Version 2.0 (LICENSE).
