Skip to main content Switch to mobile version stls-identity 0.1.8 DID + Verifiable Credential identity layer for the STLS AI ecosystem
pip install stls-identity==0.1.8 Copy PIP instructions
DID + Verifiable Credential identity layer for the STLS-AI ecosystem.
Fourth package in the monorepo, on top of stls-core: adds a persistent, third-party-verifiable identity to agents — separate from authorization. stls-core/stls-mcp remain fully untouched; an optional bridge now connects it to stls-a2a (issue #15 gap #1, stls_id_request_verifier.py) without either package depending on the other — stls-a2a only calls a duck-typed hook, never imports this package. ApiKeyManager/KeyRecord remain fully operational in parallel throughout the migration.
Canonicalization: real RFC 8785 (JCS) via the rfc8785 library, not an approximation — necessary so that bridges implemented independently on different platforms converge on the same signed bytes. Signature: Ed25519, proof type DataIntegrityProof / cryptosuite: eddsa-jcs-2022.
What it does NOT do (yet)
Listed explicitly so it doesn't look like it was forgotten:
Hardware-backed keystore — IdentityKeystoreBase only has software backends (memory, redis, the latter optionally encrypted at rest since issue #49); every credential honestly declares keyStorageTier: TIER_1_SOFTWARE, never a higher tier.
Registry governance beyond Option A — only the centralized registry (operated by an anchor member) is implemented. Quorum (Option B) and the transparency log (Option C) remain design-only.
PQC for identity signing — credentials are signed with Ed25519 only (classical). The Ed25519+ML-DSA hybrid discussed for alignment with stls-core's PQC handshake is not implemented.
Selective disclosure / ZKP, DIDComm receipts — explicitly Phase 5/Full, never in scope for this version.
In the monorepo, with uv:
cd python/stls-identity uv venv uv sync --extra dev [tool.uv.sources] resolves stls-core from the sibling folder (../stls-core) in editable mode — no extra manual step needed.
from stls_identity import ( IdentityManager, InMemoryIdentityKeystore, bootstrap_signing_key, build_did_document, ) keystore = InMemoryIdentityKeystore() # in production: RedisIdentityKeystore key, pub, _ = bootstrap_signing_key("my-agent", keystore) doc = build_did_document( host="sofia.sparkle.example.com", agent_path_segments=["agents", "my-agent"], governing_authority_did="did:web:sofia.sparkle.example.com", signing_public_key=pub, ) No runnable example scripts yet — the flows above (identity bootstrap, delegation, federated vs. internal Grantor) are exercised directly by the test suite instead (see tests/test_identity_e2e.py, tests/test_delegation.py).
uv run pytest -v Requires reachable Redis and Postgres for the tests that actually use them (test_status_list_redis.py, test_postgres_store.py, test_trust_registry.py, test_bridge.py) — see .env.example for the variables (IDENTITY_TEST_PG_DSN, STATUS_LIST_TEST_REDIS_URL, loaded automatically by tests/conftest.py). Tests that don't touch external infrastructure still run with nothing configured.
68 tests as of 0.1.0, 91 as of 0.1.1, 95 as of 0.1.2, 99 as of 0.1.3, 109 as of 0.1.4, 112 as of 0.1.6, 125 as of 0.1.7, all against real crypto/DB/cache where relevant — never against Python stubs for the parts that matter (signing, canonicalization, persistence, revocation).
Runs automatically on every push/PR via python-tests.yml — the five Postgres/Redis-backed files listed above are --ignore'd there (no service containers in that workflow) — and again as a release gate before publishing via publish-python.yml, with the same exclusion.
src/stls_identity/ stls_id_models.py Pydantic models (DID, VC, VP, TrustAnchorEntry) stls_id_did.py DID Document, key bootstrap, multibase encode/decode stls_id_keystore.py signing-key persistence (no-TTL, not ArqitKeyStoreBase), optional AtRestCipher encryption (issue #49) stls_id_credential_cache.py agent's own Identity Credential cache (#45) + received Operational Credential cache (#54) stls_id_issuer.py IdentityManager — Identity Credential issuance stls_id_delegation.py DelegationManager — Operational Credential, depth-1 stls_id_status.py status list (Redis bitstring, MRI) + remote fetch/check over HTTP stls_id_presentation.py Verifiable Presentation construction/signing, wire helpers, IdentityPresenter stls_id_verifier.py Sentinel — all verifications stls_id_request_verifier.py stls-a2a identity_verifier bridge (issue #15 gap #1) stls_id_postgres_store.py DID Document + status list cache (Postgres) stls_id_bridge.py public HTTP endpoints (FastAPI) stls_id_trust_registry_store.py Trust Anchor Registry, key history (Postgres) stls_id_trust_registry_client.py cache/TTL, historical fallback for the Sentinel stls_id_trust_registry_bridge.py read-only HTTP endpoint for the registry tests/ 109 tests, same "against real infrastructure" discipline as the rest of the monorepo License
Dual-licensed: GNU AGPLv3 or commercial license, consistent with stls-core, stls-a2a and stls-mcp.
Released: Nov 30, 2026
Both files in this release have provenance metadata.
View provenance details
GNU Affero General Public License v3 or later (AGPLv3+) (AGPL-3.0-or-later OR LicenseRef-Commercial)
License OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Release files for stls-identity 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 175.9 kB
Release files / stls_identity-0.1.8.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Release files / stls_identity-0.1.8-py3-none-any.whl
Security for stls-identity 0.1.8
Both files in this release have been uploaded with provenance metadata.
With provenance stls_identity-0.1.8.tar.gz Nov 30, 2026
With provenance stls_identity-0.1.8-py3-none-any.whl Nov 30, 2026
Attestation for stls_identity-0.1.8.tar.gz
Attestation for stls_identity-0.1.8-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files Full provenance
Nov 27, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 11, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











