What You’ll Build
A complete DeveloperCredential workflow:- Start from a template
- Customize for your identity
- Validate the structure
- Generate keys
- Sign into a JWS token
- Verify the signature
Prerequisites
- Beltic CLI installed (Installation guide)
- beltic-spec repository cloned
- AJV CLI for validation:
npm install -g ajv-cli ajv-formats
Step 1: Choose a Template
Navigate to the beltic-spec examples:valid-individual-minimal.json- Solo developer, basic fieldsvalid-individual-complete.json- Individual with full KYBvalid-organization-tier1.json- Startup, basic org infovalid-organization-tier2-complete.json- Established company
Step 2: Copy and Customize
my-developer-credential.json with your information:
credentialId- New UUIDlegalName- Your name/companyentityType- Match your entitybusinessEmail- Your emailsubjectDid- Your DIDissuanceDate/expirationDate- Current dates
Step 3: Validate Against Schema
Step 4: Generate Cryptographic Keys
dev-private-key.pem secure! Never commit to version control.
Add to .gitignore:
Step 5: Sign the Credential
- Header: Algorithm, type (
application/beltic-developer+jwt), key ID - Payload: Issuer, subject, expiration, full credential
- Signature: EdDSA signature over header + payload
Step 6: Verify the Signature
Step 7: Inspect the JWT
To see the JWT structure:Advanced: Constrained Verification
Verify with specific issuer/audience expectations:SDK Workflow (TypeScript)
The TypeScript SDK provides programmatic credential workflows. Note: SDK is currently in early access.Step 1: Install SDK
Step 2: Validate Credential
Step 3: Generate Keys
Step 4: Sign Credential
Step 5: Verify Credential
Self-Signing with SDK
Complete SDK Example
Complete Example Script
Next Steps
Signing & Verification
Advanced signing workflows and key management
Managing Fingerprints
Agent manifests and code fingerprinting
Command Reference
Complete CLI command documentation