chip-registry

Crates.iochip-registry
lib.rschip-registry
version0.2.0
created_at2026-01-14 09:46:15.978174+00
updated_at2026-01-14 09:46:15.978174+00
descriptionChip lifecycle API: mint, transfer, revoke, fork — Git for Capabilities
homepagehttps://logline.foundation
repositoryhttps://github.com/danvoulez/ubl-services
max_upload_size
id2042521
size71,278
(danvoulez)

documentation

https://docs.rs/chip-registry

README

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
curl -X POST https://chip.ubl.agency/t/logline/v1/chips \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-UBL-POW: $POP" \
  -d '{"scope": "invoice:create", "blueprint": {...}}'

# Fork it
curl -X POST https://chip.ubl.agency/t/logline/v1/chips/did:ubl:chip:abc/fork \
  -d '{"reason": "customized for ACME"}'

Part of UBL Ecosystem

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt