DAO Quantum Identity Protocol is a decentralized identity service for issuing and verifying post-quantum-ready credentials. It combines decentralized identifiers, algorithm-aware verifiable credentials, selective disclosure presentations, revocation tracking, and audit-style anchoring into a single operational backend.
The original system footprint spans multiple implementation layers and languages. This public repository presents the public-safe product surface while preserving that technical breadth in the project narrative.
See PUBLIC_EDITION_SCOPE.md for boundary notes.
The service exposes six core capability groups:
-
Identity registration Create decentralized identifiers with algorithm metadata and DID documents.
-
Credential issuance Issue verifiable credentials with signed claims and commitment generation.
-
Credential lifecycle Track active, expired, and revoked credential states.
-
Selective disclosure Create presentation payloads that disclose only selected attributes.
-
Verification Verify presentations, credential state, and anchor consistency.
-
Algorithm registry Expose supported post-quantum algorithm profiles and security metadata.
The broader source architecture behind this node includes these implementation layers:
- Python for API services, identity logic, and simulation workflows
- JavaScript for frontend and runtime service layers
- Rust for protocol-oriented backend experimentation
- Go for ledger and chaincode-oriented components
- Shell for runtime scripts and startup orchestration
The public edition intentionally focuses on the Python service layer and safe runtime assets.
- authenticated identity and credential workflow
- seeded local admin and sample DIDs for immediate use
- DID document generation and algorithm-aware identity metadata
- verifiable credential issuance with signature simulation
- selective disclosure presentations with hidden attribute commitments
- revocation checks and anchor verification endpoints
- Docker and local development workflow
main.pyexposes the API surface and startup seedingdatabase.pymanages SQLAlchemy engine and sessionsmodels.pydefines users, DIDs, credentials, presentations, anchors, and revocationsschemas.pydefines API contractssecurity.pyhandles password hashing and bearer-token authidentity_engine.pycontains DID, signing, commitment, and verification logicseeded_identity_data.pyprovides the local demo datasettests/test_api.pyvalidates the public API surface
The default runtime uses seeded_demo mode so the service can run locally without external protocol infrastructure.
docker compose up --buildBy default, the service is published on http://localhost:18009.
Swagger UI:
http://localhost:18009/docs
pip install -r requirements.txt
uvicorn main:app --reload --port 18009
pytest -qThe API uses Bearer tokens for protected endpoints.
Seeded local credentials:
- username:
admin - password:
changeme
Public endpoints:
GET /healthPOST /api/v1/auth/tokenGET /api/v1/algorithmsGET /api/v1/revocation/check/{credential_id}
Protected endpoints:
POST /api/v1/auth/registerPOST /api/v1/did/createGET /api/v1/didGET /api/v1/did/{did_encoded}POST /api/v1/credentials/issueGET /api/v1/credentialsGET /api/v1/credentials/{credential_id}POST /api/v1/credentials/revokePOST /api/v1/presentations/createPOST /api/v1/presentations/verifyGET /api/v1/blockchain/anchorsGET /api/v1/blockchain/verify/{entity_id}
DAO Quantum Identity Protocol is one of the trust and identity services within the broader Sampo AI OS ecosystem. It can operate as a standalone identity backend or as a specialized trust component inside a larger orchestration layer.