Skip to content

Port SDK to Python #15

@FransDevelopment

Description

@FransDevelopment

Context

The registry SDK (sdk/typescript/) lets services verify agent attestations in a few lines of code:

import { OpenAgentTrustRegistry } from '@open-agent-trust/registry';
const registry = new OpenAgentTrustRegistry();
const result = await registry.verifyAttestation(jwt, { audience: 'https://your-api.com' });

Several Working Group members are building in Python (APS, AgentID, Agora all have Python implementations). A Python SDK would let them verify attestations natively.

What needs to happen

  1. Port sdk/typescript/src/ to Python — the core is ~200 lines
  2. Ed25519 signature verification (use PyNaCl or cryptography library)
  3. Manifest fetching with signature validation
  4. JWT attestation verification
  5. Add tests mirroring sdk/typescript/test/

Getting started

  • Read sdk/typescript/src/ to understand the API surface
  • Read spec/03-verification.md for the verification protocol
  • The manifest is at registry/manifest.json — it's a signed JSON file with issuer entries

Acceptance criteria

  • pip install open-agent-trust works
  • verify_attestation(jwt, audience) returns the same results as the TypeScript SDK
  • Tests cover: valid attestation, expired attestation, unknown issuer, tampered manifest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions