Skip to main content

gtec_attest

Contains only public keys. The signing keys live in the amplifier packages.

Verification of g.tec amplifier attestations. An amplifier package signs a challenge with a private key held in its compiled layer; this package checks that signature against a public key it carries.

It returns a verdict about a device — never a permission, tier or entitlement. Mapping verdicts onto entitlements is the consuming product's job.

Install

pip install gtec_attest

Wheels are published for Windows, macOS (universal2) and manylinux across CPython 3.10 to 3.14.

Use

import gtec_attest

nonce = gtec_attest.mint_nonce()              # 32 bytes, once per device
attestation = amp.attest(nonce)               # 67 bytes from the amplifier

verdict = gtec_attest.verify(
    attestation,
    serial=amp.serial_number,                 # byte-identical to the handle
    nonce=nonce,
)

if verdict:
    ...                                       # genuine device
else:
    log.warning("unattested source: %s", verdict.reason.name)

verify() is a pure function: no I/O, no clock, no network.

Field Meaning
verified True only if the signature checks out against an accepted key
key_id The key ID carried in the attestation
serial Echo of the serial you passed in
reason OK, BAD_SIGNATURE, UNKNOWN_KEY_ID, MALFORMED, SERIAL_MISMATCH, RETIRED_KEY

Mint one nonce per device per pipeline start with mint_nonce(). Never reuse one and never cache one.

Integration notes

Products that enforce on the verdict should not rely on importing this module. Contact g.tec for the integration component and guidance.


© g.tec medical engineering GmbH — support@gtec.at

Release files for gtec-attest 0.2.0

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

Built distributions (wheels)

Table of built distributions (wheels) for gtec-attest 0.2.0
File
gtec_attest-0.2.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
gtec_attest-0.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
gtec_attest-0.2.0-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtec_attest-0.2.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
gtec_attest-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
gtec_attest-0.2.0-cp313-cp313-macosx_10_13_universal2.whl CPython 3.13 CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) Details
gtec_attest-0.2.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
gtec_attest-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
gtec_attest-0.2.0-cp312-cp312-macosx_10_13_universal2.whl CPython 3.12 CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) Details
gtec_attest-0.2.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
gtec_attest-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
gtec_attest-0.2.0-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details
gtec_attest-0.2.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
gtec_attest-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
gtec_attest-0.2.0-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 844.4 kB

Release files / gtec_attest-0.2.0-cp314-cp314-win_amd64.whl

Download URL gtec_attest-0.2.0-cp314-cp314-win_amd64.whl
Size 28.3 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
45ea1e2fb4028b669827f770785a197bd0bb3b609a98e706b9e22e7d3f51a393
BLAKE2b-256 checksum
How to use checksums
5e722faae690c8433fd38082e2131b87981af33d616d9d3df7505a0d7093f3c3
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL gtec_attest-0.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 83.3 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3a32c37dbba81bff98ea5bce1a4c80013e899dce25ea8724582f33b8945db0ff
BLAKE2b-256 checksum
How to use checksums
36e658b831f43a382a96252b3f2e051824a13d16f70b9361135527e49f07c51a
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtec_attest-0.2.0-cp314-cp314-macosx_10_15_universal2.whl
Size 58.2 kB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
d02851e073992149bfd758740322c07271a1d702b8066c9f5928a8f57451b8cf
BLAKE2b-256 checksum
How to use checksums
641fb383fd8b8370093dcf98ec64a4d461f6301967988dd3ae255c4986b4c894
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp313-cp313-win_amd64.whl

Download URL gtec_attest-0.2.0-cp313-cp313-win_amd64.whl
Size 27.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
5ea5984b371963dcf67ff577a95c68ec48dd98e1d1eec7d456dcd8dbf6166769
BLAKE2b-256 checksum
How to use checksums
a31a28f119f183562e14a8122ced15337b437be6c05f0e97097e81364eab6b0a
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL gtec_attest-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 83.2 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a83fe74ec5db75c02f1c0ddf474a96656a2d6dc50a311b77137d47239fe6ec04
BLAKE2b-256 checksum
How to use checksums
ef3d222ed98d7a767bf0d3e1409b60f63d6d647886713058401a00bc57fd7dca
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp313-cp313-macosx_10_13_universal2.whl

Download URL gtec_attest-0.2.0-cp313-cp313-macosx_10_13_universal2.whl
Size 58.1 kB
Tags CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
1f47270366545ce9827a44c12cadba0f8e5be93e7d0f02ac2906ae0a02b05a0e
BLAKE2b-256 checksum
How to use checksums
5d3fb47abda0ecca49e1164d0f270e5113df3cec287458bb506761a8f3be370e
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp312-cp312-win_amd64.whl

Download URL gtec_attest-0.2.0-cp312-cp312-win_amd64.whl
Size 27.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
4b8a8754e49ef0909eb0ee7ca76cbf76da562a08c95294b8e78697d388875ab3
BLAKE2b-256 checksum
How to use checksums
6bb9d11a21f4ea3f3a983baf1fdda71da5919b3e86144288493c282fff0af3c8
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL gtec_attest-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 83.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8f79d2f35aff9f16500fdda894105d58925afd656b2ad5a9115a45e2ffbca886
BLAKE2b-256 checksum
How to use checksums
04302ee245e1799a5335effbc6e69ddf868af78467790fb66c370dd69a525b75
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp312-cp312-macosx_10_13_universal2.whl

Download URL gtec_attest-0.2.0-cp312-cp312-macosx_10_13_universal2.whl
Size 58.1 kB
Tags CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
0360d7fb3464899626729aaa8bda1b757b51a7e267f34067eb669ba3b3d644d5
BLAKE2b-256 checksum
How to use checksums
256864d310c1886952753ec23a3253618fa69423e8e4494646f9245d736a77aa
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp311-cp311-win_amd64.whl

Download URL gtec_attest-0.2.0-cp311-cp311-win_amd64.whl
Size 27.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
f563915df4b1901e5f81aa1814845472948dcf01c092cc687b2e43987767d590
BLAKE2b-256 checksum
How to use checksums
6b4f676a8e2b2ab3d91f7b894c41a29fac1b108a8edc37416d70f6fa389243f5
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL gtec_attest-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 82.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
04e8dcacaffbc120a0b963d987058c07800984e4bc1c25de2da2d8106367cab4
BLAKE2b-256 checksum
How to use checksums
7760ffa89a77ad26466d4a5845f9b3fb1166e58e7728d6dd519faefe06d373ff
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp311-cp311-macosx_10_9_universal2.whl

Download URL gtec_attest-0.2.0-cp311-cp311-macosx_10_9_universal2.whl
Size 58.4 kB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
3cac16a2fc7cbdbb3ae3eb35bbf49241ae71b08f88480a12dfee6ea6cd46817d
BLAKE2b-256 checksum
How to use checksums
37413bb3de83f8d0b836bd36a054e89f0e4c83d210d550cdc538bcf183871ab1
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp310-cp310-win_amd64.whl

Download URL gtec_attest-0.2.0-cp310-cp310-win_amd64.whl
Size 27.4 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
425917efdef266591c82fbe72b18b0ce004c8878d5884bf74ec8e40fc0be781b
BLAKE2b-256 checksum
How to use checksums
daed4452be569487accbe341748a6c6a8667d0a7224d2d9fbbbb3a612891e8b3
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL gtec_attest-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 82.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d4b2a2c190a227d4e07b689efd2354b07c58f886401c2c3b2267d0b8a54e85f7
BLAKE2b-256 checksum
How to use checksums
d5b74c7c0b6c5054fffdfc9232cef93e9653e0cd5af96df085655f4b51288cbd
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 26, 2026.

Transparency log

Release files / gtec_attest-0.2.0-cp310-cp310-macosx_10_9_universal2.whl

Download URL gtec_attest-0.2.0-cp310-cp310-macosx_10_9_universal2.whl
Size 58.4 kB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
57a10bfadcfdd7ca3a806f73e98b41da081b4844bd1ad84debb625ab0df82507
BLAKE2b-256 checksum
How to use checksums
a36fffaddc84c7b1ec12d7ee7608524f67e38c4af97849f285a049ecce3b071b
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 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

15 release files

0.1.0

15 release files

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