Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trust anchors

The three cryptographic checks Telys runs before activating the native runtime — a signed release manifest, per-artifact SHA-256 hashes, and a strict offline license.

Telys will not run an engine it cannot prove is genuine. Before the native runtime activates, the SDK checks three independent anchors — a signed release manifest, per-artifact hashes, and an offline license — and every one must pass. Each answers a different question, and the chain is ordered: nothing downstream is trusted until the anchor above it is. All three run locally against keys embedded in the wheel; none touches the network.

Where the anchors live

A verified install lands under $TELYS_HOME/runtime/<platform>/ (for example runtime/macos-arm64/). Each anchor consumes these files:

File
Consumed by

telys_manifest.json

Anchor 1 — the release manifest (format version, platform, expected artifact hashes).

telys_manifest.sig

Anchor 1 — RS256 / PKCS#1 v1.5 signature over the manifest bytes.

libty_runtime.<ext>, libame_kernel.<ext>

Anchor 2 — the native libraries whose SHA-256 is checked.

license.jwt

Anchor 3 — the offline license token.

The public keys the SDK trusts ship inside the wheel, so verification needs no 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.

Anchor 1 — the signed release manifest

The manifest carries the format version and platform, plus the expected SHA-256 of every artifact ({format_version, platform, artifacts: [{name, sha256, size_bytes}]}). Its signature is checked over the exact bytes of telys_manifest.json:

from telys.verify import verify_manifest, release_public_key

# RS256 / PKCS#1 v1.5 + SHA-256 over the exact manifest bytes.
# Defaults to the embedded release public key.
manifest = verify_manifest(manifest_bytes, signature)   # -> trusted manifest dict

verify_manifest(manifest_bytes, signature, pubkey=None) verifies the RSA signature and returns the manifest dict only if it is intact. The signature covers the raw bytes, so re-serializing or editing a single character invalidates it. Once it passes, the artifact names and hashes inside the manifest are trusted — which is what makes Anchor 2 meaningful.

The manifest is the root of the chain: the hashes Anchor 2 checks live inside this signed manifest. An unsigned or forged manifest would carry worthless hashes, so its signature is verified first.

Anchor 2 — per-artifact SHA-256

For each artifact in the trusted manifest, the SDK recomputes the file's SHA-256 and compares it to the promised value in constant time:

A swapped, patched, or truncated libty_runtime or libame_kernel produces a different digest and is rejected. Constant-time comparison prevents probing a mismatch byte-by-byte through timing.

Anchor 3 — the offline license

The last anchor proves this machine is entitled to run Telys. It is strict and entirely offline:

verify_license(token, pubkey=None, *, now, issuer=None, audience=None, product="telys") validates license.jwt against the embedded license public key and:

  • pins the algorithm to RS256 and rejects any token with a crit header;

  • checks iss (default https://license.algenta.ai) and aud (default telys-runtime, algenta-runtime);

  • requires ver == 2 (the SUPPORTED_LICENSE_VER);

  • checks exp against now plus a grace window;

  • reads the products.telys entitlement (tier + features).

The defaults are constants in telys.verify:

Constant
Default

DEFAULT_LICENSE_ISSUER

https://license.algenta.ai

DEFAULT_LICENSE_AUDIENCES

telys-runtime, algenta-runtime

SUPPORTED_LICENSE_VER

2

PRODUCT

telys

The offline check with a grace window on exp means a short outage or travel does not lock you out of a provisioned install. See Offline licenses & verification.

Fail-closed, native-only

The three anchors compose into one rule: an install that does not verify does not run. A verified install is native-only — load_runtime() loads the signed native runtime and never downgrades a verified install to unverified code; if the runtime cannot import, it raises RuntimeNotInstalled. Importing the package activates only a verified install's pysite/, and is a silent no-op otherwise.

Next steps

Next: run the chain in Verify the runtime signature.

Last updated

Was this helpful?