Coming Soon: The Python SDK (
beltic-sdk) is currently in development. The package name and API may change before release. For now, use the CLI or TypeScript SDK for production workflows.Features
- Validate DeveloperCredential and AgentCredential against v1 schemas
- Sign credentials as JWS/JWT with ES256 or EdDSA
- Verify signed credentials with the 7-step verification process
- Trust Chain verification with policy enforcement
- Status List 2021 revocation checking
- HTTP Message Signatures (RFC 9421) for Web Bot Auth
- Selective Disclosure (SD-JWT) for privacy-preserving credentials
- Multi-Signature support for credentials requiring multiple signers
- Audit Logging with pluggable handlers
- Rich errors with paths, rule IDs, and suggestions
Installation
Requirements
- Python >= 3.10
- cryptography >= 41.0
- pyjwt[crypto] >= 2.8
- jsonschema >= 4.20
- pydantic >= 2.5
- httpx >= 0.25
Quick Start
Guides
Installation
Install and configure the Python SDK
Validation
Validate credentials against JSON schemas
Signing & Verification
Sign and verify credentials with JWS
Trust Chains
Verify agent-developer trust chains with policies
API Reference
Complete Python API documentation
Comparison with TypeScript SDK
The Python SDK maintains feature parity with the TypeScript SDK:| Feature | TypeScript | Python |
|---|---|---|
| Validation | validateDeveloperCredential | validate_developer_credential |
| Signing | signCredential | sign_credential |
| Verification | verifyCredential | verify_credential |
| Trust Chain | verifyAgentTrustChain | verify_agent_trust_chain |
| HTTP Signing | signHttpRequest | sign_http_request |
| Key Directory | generateKeyDirectory | generate_key_directory |
| Status List | decodeStatusList | decode_status_list |
| SD-JWT | createSdJwt | create_sd_jwt |
| Multi-Sig | MultiSigCredential | MultiSigCredential |
| Audit | AuditLogger | AuditLogger |