This release is a pre-release and may not be stable for production use.
tba-profile-workload-proof-wimse-wpt
WIMSE Workload Proof Token. This is a revision-pinned IETF draft profile and is disabled by default at runtime.
Quick start
With uv available, save the example as quickstart.py. This command uses the published package in an isolated Python 3.12 environment.
from tba_profile_workload_proof_wimse_wpt import CURRENT_VERSION
assert CURRENT_VERSION is not None
print(CURRENT_VERSION)
uv run --isolated --no-project --python 3.12 --with "tba-profile-workload-proof-wimse-wpt==0.4.0.dev2" python quickstart.py
The command prints the declared current revision.
When presenting a transaction token, pass its exact value as
transaction_token to present_wit(). Send the returned headers together.
They include Txn-Token and a signed WPT whose tth claim binds that token
according to WPT draft-02 §2.
Verification
issue_wpt(signer, wit, workload_key_reference=..., audience=..., now=...)
returns a compact signed WPT without HTTP headers. It generates a fresh jti,
binds the exact WIT, checks that the signing key matches the WIT's confirmation
key, and caps expiry at the earlier of the requested lifetime and WIT expiry.
WPT lifetime is limited to 1–300 seconds. The recipient authenticates the WIT issuer.
WptProofIssuer(signer, wit, workload_key_reference=...).issue(context)
implements PossessionProofIssuerPort and returns a PossessionProof with
its populated credential digest, proof ID, expiry, and bound context.
context is a PossessionProofContext with audience or target_uri.
Conflicting audiences, a different WIT digest, and requested HTTP method binding
are rejected. This WPT profile binds audience, not HTTP method. Audiences follow
the pinned HTTP profile: absolute HTTP(S) URIs normalized without query or fragment.
For additional bindings, supply lowercase header names and SHA-256 base64url
digests through accompanying_token_digests. txn-token becomes tth; other
tokens become oth. present_wit() retains its HTTP headers interface and
delegates signing to issue_wpt(). normalize_wpt_audience() exposes the shared
audience normalization used by issuers and remote-verifier configuration.
The receiver's configured bound_token_headers select headers to bind when
present, preserving the existing receiver contract. Use required_token_headers
to require presence and binding even when the sender omits both the header and
its proof claim. WptProofVerifier reserves
replay state only after validating trust, signature, audience and token bindings.
The quick start was run with the pinned distribution from PyPI and its declared dependencies. See the public package entry point.
Metadata
Release files for tba-profile-workload-proof-wimse-wpt 0.4.0.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tba_profile_workload_proof_wimse_wpt-0.4.0.dev4.tar.gz | 10.1 kB | Without provenance | Details for tba_profile_workload_proof_wimse_wpt-0.4.0.dev4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tba_profile_workload_proof_wimse_wpt-0.4.0.dev4-py3-none-any.whl | Python 3 | none | any | Details for tba_profile_workload_proof_wimse_wpt-0.4.0.dev4-py3-none-any.whl |
Total release size: 24.0 kB
Release files / tba_profile_workload_proof_wimse_wpt-0.4.0.dev4.tar.gz
| Download URL | tba_profile_workload_proof_wimse_wpt-0.4.0.dev4.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47be676b71168973a7a4db1c9c6f94a966f542249ed0a090570228597b9affa9
|
|
BLAKE2b-256 checksum How to use checksums |
86708cb9ebc6d22b69d547ad59c5aea4856381a547bbec1a2389356d0e3373d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tba_profile_workload_proof_wimse_wpt-0.4.0.dev4-py3-none-any.whl
| Download URL | tba_profile_workload_proof_wimse_wpt-0.4.0.dev4-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5bf39d5c710c0d1855588944f0f5a94a1fe8ad6b782cf7590a14791c59a6835
|
|
BLAKE2b-256 checksum How to use checksums |
9dd73f7c19f621ca73ee08901d4b64d79a20b7ae4fbdef436c28c93fa58cff8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tba-profile-workload-proof-wimse-wpt 0.4.0.dev4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.