Skip to main content

goassay-provider-verify

Verify that a request to your API really comes from Assay. Assay signs every request it forwards with an Ed25519 signature (HTTP Message Signatures, RFC 9421 style); this package checks it with ASGI and WSGI middleware. The only runtime dependency is cryptography. Python 3.9 or newer (the test suite runs on 3.10+).

pip install goassay-provider-verify

Rejected requests get 401, content-type: application/json and {"error":"invalid_assay_signature","reason":"<CODE>"}. Accepted requests reach your app unchanged, with the full body still readable.

One line per framework

from goassay_provider_verify import AssayVerifyMiddleware, AssayVerifyWSGI

app.add_middleware(AssayVerifyMiddleware)                # FastAPI / Starlette (ASGI)
app.wsgi_app = AssayVerifyWSGI(app.wsgi_app)             # Flask (WSGI)
application = AssayVerifyWSGI(get_wsgi_application())    # Django, in wsgi.py

Without a framework, call the verifier yourself:

from goassay_provider_verify import Verifier

result = Verifier().verify(method, url, headers, body)  # url = path + query; body = raw bytes or None
if not result.ok:
    print(result.reason)

Testnet keys: pass environment="testnet". Behind a proxy that rewrites Host, pass authority="api.example.com". With more than one instance, use redis_replay_store (pip install "goassay-provider-verify[redis]").

Documentation

License

MIT, see LICENSE.

Metadata

Release files for goassay-provider-verify 0.1.0

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

Source distribution (sdist)

Source distribution for goassay-provider-verify 0.1.0
File Size Uploaded Provenance
goassay_provider_verify-0.1.0.tar.gz 18.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for goassay-provider-verify 0.1.0
File Interpreter ABI Platform
goassay_provider_verify-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / goassay_provider_verify-0.1.0.tar.gz

Download URL goassay_provider_verify-0.1.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7802d0ce21abc2ecc0deb14c99aa2631c0fd4c895cd79481de2b488bf07072a1
BLAKE2b-256 checksum
How to use checksums
c19debef9f53f8ec58b1ec8c32b3027b677e2e9f48b1d6fe8c731bcd45d1249a
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 Oct 22, 2026.

Transparency log

Release files / goassay_provider_verify-0.1.0-py3-none-any.whl

Download URL goassay_provider_verify-0.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52ef8c17ee135e7b9456055d036835650104b48fb765f62a3613396a19617454
BLAKE2b-256 checksum
How to use checksums
8cb8eb3a0ec88f5ce58caff4c8be3c515de9baed41a3ceb103cad8c8e72e2ac7
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 Oct 22, 2026.

Transparency log

Security for goassay-provider-verify 0.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for goassay_provider_verify-0.1.0.tar.gz

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 Oct 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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