Signed runtime & trust
How Telys verifies a signed release manifest, hashes every runtime artifact, and checks an offline license before activating the native engine — fail-closed, native-only.
The telys SDK is pure Python, but the engine it drives — the native runtime and the embedding kernel — ships as a signed bundle. Before that bundle is activated, the SDK verifies three things: a release manifest signed by Telys's release key, every on-disk artifact matching the hash the manifest promises, and a valid offline license for this machine. Any check fails and the runtime does not load. This page describes that chain and the API you run yourself.
What ships signed
A verified install lands under $TELYS_HOME/runtime/<platform>/ (for example runtime/macos-arm64/) and contains the runtime, the kernel, the signed manifest, and the license:
libty_runtime.<ext>
the native runtime (.dylib / .so / .dll)
libame_kernel.<ext>
the embedding kernel
telys_manifest.json
the release manifest (versions + expected artifact hashes)
telys_manifest.sig
RS256 / PKCS#1 v1.5 signature over the manifest
license.jwt
the offline license token
installed.json, pysite/
install metadata and the runtime's Python site directory
The verification chain
The SDK walks three anchors in order, and every one must pass.
Verify the release manifest signature
verify_manifest(manifest_bytes, signature, pubkey=None) checks telys_manifest.sig against telys_manifest.json with RS256 / PKCS#1 v1.5 and SHA-256, defaulting to the embedded release public key, and returns the trusted manifest as a dict. A tampered or unsigned manifest fails here, so nothing downstream is believed.
Verify every artifact hash
For each artifact the manifest describes, verify_artifact(path, expected_sha256) recomputes the file's SHA-256 (via sha256_file) and compares it in constant time to the value the signed manifest promised. A swapped or corrupted libty_runtime / libame_kernel is rejected here.
Verify the offline license
verify_license(token, pubkey=None, *, now, issuer=None, audience=None, product="telys") validates license.jwt strictly and entirely offline against the embedded license public key: it pins the algorithm to RS256, rejects any crit header, checks iss / aud / ver == 2 and exp plus a grace window, and reads the products.telys tier and features. Only then is the runtime activated.
Fail-closed and native-only
A verified install is native-only. load_runtime() loads the signed native runtime for a native or verified install and never silently downgrades a verified install to the local runtime. If the runtime cannot be imported it raises RuntimeNotInstalled rather than degrading — the trust model is fail-closed, so an install that does not verify simply does not run.
Importing the package wires it in: import telys prepends the verified install's pysite/ to sys.path (a silent no-op when there is none). TELYS_RUNTIME can force "native" or "local" to override auto-detection.
The embedded trust anchors
The public keys the SDK trusts are shipped inside the wheel, so verification needs no network and no external key server:
release_public_key()→telys/_keys/telys_release_pub.pem(verifies the manifest)license_public_key()→telys/_keys/telys_license_pub.pem(verifies the license)
Both require the cryptography package (a hard SDK dependency). You can override the keys and license expectations via environment — TELYS_RELEASE_PUBKEY / TELYS_RELEASE_PUBKEY_FILE, TELYS_LICENSE_PUBKEY / TELYS_LICENSE_PUBKEY_FILE, TELYS_LICENSE_ISSUER, and TELYS_LICENSE_AUDIENCE — but the defaults are the production trust anchors.
DEFAULT_LICENSE_ISSUER
https://license.algenta.ai
DEFAULT_LICENSE_AUDIENCES
telys-runtime, algenta-runtime
SUPPORTED_LICENSE_VER
2
PRODUCT
telys
Verify it yourself
The one-command path runs the whole chain and is the recommended check after any install or upgrade:
For scripting or auditing, the same primitives are importable. The manifest bytes, signature, expected hashes, and license token all come from the signed bundle in $TELYS_HOME/runtime/<platform>/:
Next steps
Last updated
Was this helpful?