-
Notifications
You must be signed in to change notification settings - Fork 9
Port SDK to Python #15
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
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
- Port
sdk/typescript/src/to Python — the core is ~200 lines - Ed25519 signature verification (use
PyNaClorcryptographylibrary) - Manifest fetching with signature validation
- JWT attestation verification
- Add tests mirroring
sdk/typescript/test/
Getting started
- Read
sdk/typescript/src/to understand the API surface - Read
spec/03-verification.mdfor 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-trustworksverify_attestation(jwt, audience)returns the same results as the TypeScript SDK- Tests cover: valid attestation, expired attestation, unknown issuer, tampered manifest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers