Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

polaris-verify (Python SDK)

A server-side SDK for a relying party to verify Polaris identity credentials. It answers one narrow question about a credential a holder presented: is it authentic, and is it authoritative right now? It never returns a person's data.

Project name and import name differ, and the obvious guess lands elsewhere. This project, polaris-sdk-python, installs the module polaris_verify. The project called polaris-verify is a different thing: the command-line verifier, which installs polaris_verify_cli. They coexist without colliding. The module keeps its name because conformance/SPEC.md publishes python -m polaris_verify.conformance as the reference verifier command, so it is part of a contract rather than a preference.

  • Authenticity (offline, cacheable): the ML-DSA-65 signature over SHA3-256(token_value), verified with cryptography (and liboqs as a second witness when present), optionally against trusted issuer anchor keys.
  • Authorization (online, fresh): the issuer's POST /api/v1/verify, authenticating as a registered organization with OAuth2 client-credentials.

accept requires both; without a reachable issuer the verdict is provisional. Self-contained: only cryptography plus the standard library.

from polaris_verify import PolarisVerifier

v = PolarisVerifier(
    issuer_url="https://issuer.example",
    client_id="rp_...", client_secret="...",         # from `polaris rp-register`
    anchors=["<issuer public key hex>"],             # optional trust anchors
)
verdict = v.verify_presentation(presentation)        # a wallet presentation, or a bare pack
print(verdict.decision)                              # "accept" | "reject" | "provisional"

Offline only (no issuer_url) yields a provisional verdict from authenticity alone. verify_authenticity(pack, anchors) exposes the offline check directly.

What it verifies

Everything below is offline and self-contained. Signatures are accepted under two FIPS 204 parameter sets, ML-DSA-65 (the default) and ML-DSA-87; ML-DSA-44 and any other value are refused (wire spec section 6).

  • verify_authenticity(pack, anchors): the authenticity pack.
  • verify_status_assertion(assertion, now): the short-lived signed status assertion.
  • verify_presentation(presentation, ...): a wallet presentation, or a bare pack.
  • verify_signed_artifact(obj, now): every other signed artifact of the wire spec: the epoch checkpoint, revocation feed, federation manifest, status bundle, transparency STH, timestamp, registry, exchange request, exchange receipt, mint statement, signed document, ID token and trust list (authenticity, freshness where windowed, and the artifact's commitment or self-consistency).
  • verify_cross_authority(...): the federation trust decision (accept / reject).

The SDK passes every case of the conformance suite (48 at v9.331) and every case of the frozen version-1 set under scripts/polaris-compat-suite.py, which runs on every CI push.

Conformance

This SDK is the reference implementation of the Polaris verification conformance suite (../../conformance/). python -m polaris_verify.conformance implements the language-agnostic verifier CLI the suite drives; passing the suite is the integration contract. See conformance/SPEC.md.

Metadata

Release files for polaris-sdk-python 1.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polaris-sdk-python 1.0.0rc1
File Size Uploaded
polaris_sdk_python-1.0.0rc1.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polaris-sdk-python 1.0.0rc1
File Interpreter ABI Platform
polaris_sdk_python-1.0.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 51.1 kB

Release files / polaris_sdk_python-1.0.0rc1.tar.gz

Download URL polaris_sdk_python-1.0.0rc1.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37276135cd01d58c2a6a06b95fe86b3222efbec04f8d7e2ef22192990f8f6b6a
BLAKE2b-256 checksum
How to use checksums
b8f7471ed54c0744580a6ea9dcd2d5ce7f985a14f79c9bbb6086d3498731fb56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Sep 16, 2026.

Transparency log

Release files / polaris_sdk_python-1.0.0rc1-py3-none-any.whl

Download URL polaris_sdk_python-1.0.0rc1-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9de00e990153eee344cf6f916ae466057c800b277a93a145549c2a1f085ddb0
BLAKE2b-256 checksum
How to use checksums
cf8d736faffb984f5abd32608c565991cf6493032d187bc62fea1e8f502779a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Sep 16, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page