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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gtec_attest-0.1.0-cp314-cp314-win_amd64.whl (28.0 kB view details)

Uploaded CPython 3.14Windows x86-64

gtec_attest-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (83.0 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gtec_attest-0.1.0-cp314-cp314-macosx_10_15_universal2.whl (57.9 kB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

gtec_attest-0.1.0-cp313-cp313-win_amd64.whl (27.2 kB view details)

Uploaded CPython 3.13Windows x86-64

gtec_attest-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (83.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gtec_attest-0.1.0-cp313-cp313-macosx_10_13_universal2.whl (57.8 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

gtec_attest-0.1.0-cp312-cp312-win_amd64.whl (27.2 kB view details)

Uploaded CPython 3.12Windows x86-64

gtec_attest-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (83.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gtec_attest-0.1.0-cp312-cp312-macosx_10_13_universal2.whl (57.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

gtec_attest-0.1.0-cp311-cp311-win_amd64.whl (27.2 kB view details)

Uploaded CPython 3.11Windows x86-64

gtec_attest-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (82.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gtec_attest-0.1.0-cp311-cp311-macosx_10_9_universal2.whl (58.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

gtec_attest-0.1.0-cp310-cp310-win_amd64.whl (27.2 kB view details)

Uploaded CPython 3.10Windows x86-64

gtec_attest-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (82.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gtec_attest-0.1.0-cp310-cp310-macosx_10_9_universal2.whl (58.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file gtec_attest-0.1.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: gtec_attest-0.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gtec_attest-0.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f7810a9809e943012b9822120234249ee9e9fc0d4e76765c44ef7ba63802aa94
MD5 17f6c3e2279ba7c3fdf86131c6297a15
BLAKE2b-256 bf20619c10c6b53a1481e344ac73078455ceb9e192b2e7bfa5e275fd542d0c79

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp314-cp314-win_amd64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d896c2e6fa1debcfb98eeb6373194d7c93645b2ea07945c17907300af2144639
MD5 2e9caff75df4b9370d225e954ac211cb
BLAKE2b-256 f59c9522ce07f4042c4f803cc12dfa3d91d9b7c8fde03a50f354b8874b50be7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 27b22ec59cc966bda04321501fe48d25eb3ee0f3c25dc04b2ee2b39e28d33984
MD5 bd00e0c71b8e9ee685aa778e01920365
BLAKE2b-256 4829c42ee3694e4b8191116a99e10bae956f5aa7a64296e4003fbb733d8b53db

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp314-cp314-macosx_10_15_universal2.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: gtec_attest-0.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gtec_attest-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4bab9b4a0a841a3d4f1315f7682ed25ac9add08a335c184d79aa8329c7b32161
MD5 7a1295f894c81b712dceb5f5e9b10318
BLAKE2b-256 18e9cc93f26e7733ed8119f497ccf4fd6508a85cf379a40161bb3d3cbc608717

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b7a4fa2503bcb208e2f09f1283e440e74100cec0db43021ad371b5b5a9e1449a
MD5 e783ff97eb729ec88dacc806bfa80728
BLAKE2b-256 1f681d3bae143aa7d83d2af3df7ccd3e9f7b92af1c0a5bcd489a97baad4f6fe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 29df99034c53807d5b34889e9783e7b60a6bb8f7574e13eb36f779169c991a92
MD5 e18618424e61545d4ceeaa5732937b6a
BLAKE2b-256 618f8bfbb2908dbe8e54e5526cc63ea3c3086b203da5c35e574a235559418e60

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp313-cp313-macosx_10_13_universal2.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: gtec_attest-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gtec_attest-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c69c1ef31c576febd2ff55d062826848174ffd44f68054b6ecfbec070a7dcb6a
MD5 9eb2fe244bac6b54b69164ea8758b5f1
BLAKE2b-256 9cbc9c3703982fb3478d4149ba864236ab93bcf5f7984228861f9e747dd482c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebf7fb1a8398ffb5fa738a5ab4a94290935258c8451565749b0c83e514cfe0fd
MD5 ef7b31b54fbad70a1affe6f489dcf0db
BLAKE2b-256 cce7a241983df43e262b0d615f2365691cc9c44ecc48893bd9d924b800ec3ca5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5918b1429fcd5f509ce66fb3c2eae3ed402ef7e08c7bb55fe8123db1881505a9
MD5 a173437f2f7c32c405a40d6cf4990ba8
BLAKE2b-256 05d837081cf8a9a4dc033ccfafa5e929d0ae777131a06f3936d1638fe4a1834c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp312-cp312-macosx_10_13_universal2.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gtec_attest-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gtec_attest-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c51eb2b716f5d978c74df7c3e9c2f0b62ba88e9b50915cf3101934bc43d6e5ea
MD5 96f32b4a1372ec68746ce838b1fb9a25
BLAKE2b-256 cca0656bfc0f7f04293d4462d6e477fffc5222f4ae7418f4f87310522d8d3f7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d763089ad6193a0f25bf1f9394ee903969094b2cb27c3ef4b49d55c46cf7eeb8
MD5 4e1535bbe2d8b92ccc7130393a8d17d9
BLAKE2b-256 1b7cebe0b6c70fc20158976325a40e95229e1911ae802ffb4a2fba393c2b5b93

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 97b950bc6039deaa88f61b1b47c47645b142537a992f3c8718a58d6efb1945aa
MD5 e2871eaee4ae7e8bc59558de55570061
BLAKE2b-256 36a9a5597e646648fe6e92a4c77f4c0638be851366ad2816a220f09924d42e17

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: gtec_attest-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gtec_attest-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d1f034545ea0ca70bfe8d501d428c6858a12be67e2c745f6aea67c98035d0edf
MD5 4cd3cbc1b3a047944969a30434e73bf9
BLAKE2b-256 646ac388fa2faa9200022e57fec80696ed0e7dc4ea8e6ee86db39c3d12b7a09a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7be47f7c2208551f276444e90a0cb3abc170819343d95a3e5035a2b770bcedee
MD5 04f0364c8925bb26a187908fceeec3a4
BLAKE2b-256 b560a24ff6ca8a9da3bdb55382be9f012b169b32668737696731a48b9fed0519

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtec_attest-0.1.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for gtec_attest-0.1.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1a33174c1bfefaf00b8315cb33bf62b9ff221c1e9ba9a2daa4ccd08926a3316d
MD5 af82b7f9087a367769fa9cda1280115a
BLAKE2b-256 440d78a58f7023767713b2ef8cf200b4a1364eac570d06b7c87482f7f009585b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtec_attest-0.1.0-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: make-release.yml on gtec-medical-engineering/gtec-attest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

15 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page