chip-registry-0.2.0 is not a library.
chip-registry
Chip lifecycle API — Git for Capabilities.
Concept
Chips are content-addressed capability tokens:
- CID = content hash (like git SHA-1)
- Receipt chain = commit chain (prev_cid links)
- Alias = branch/tag (
@acme/invoice-chip→ did) - Fork = creates new lineage with parent_did
Endpoints
POST /t/:tenant/v1/chips → mint chip
GET /t/:tenant/v1/chips/:did → get chip + history
GET /t/:tenant/v1/chips → list chips
POST /t/:tenant/v1/chips/:did/transfer → transfer ownership
POST /t/:tenant/v1/chips/:did/revoke → revoke chip
POST /t/:tenant/v1/chips/:did/fork → fork with new lineage
POST /t/:tenant/v1/aliases → create alias
GET /t/:tenant/v1/aliases/:ns/:name → resolve alias
Example
# Mint a chip
# Fork it
Part of UBL Ecosystem
- ubl-directory — Subject registry
- chip_as_code — Boolean circuits
- ubl-id — DIDs, CIDs, Wallets
License
MIT OR Apache-2.0