Livy TLSNotary Docs

Repositories & Branches

Source map for the TLSN TDX implementation and deployment infrastructure.

tlsn

Repository: livylabs/tlsn

Branch: tee_dev

This is the implementation repo. Use it for protocol changes, Notary server behavior, prover example code, and TDX attestation plumbing.

AreaPathNotes
WebSocket TDX examplecrates/examples/tee/ws.rsMain runnable example. Creates a session with tee_attestation: Some(true), calls notarize_with_tee, verifies the TDX quote, and writes TLSN artifacts.
Shared messagescrates/common/src/msg.rsDefines the TDX attestation message shapes exchanged after notarization.
Session request typecrates/notary/common/src/lib.rstee_attestation is serialized as JSON teeAttestation.
Notary service flowcrates/notary/server/src/service.rsStores the per-session TEE flag and uses it during /notarize.
Notary server startup and /infocrates/notary/server/src/server.rsWires server config, startup checks, and feature-gated quote exposure.
TDX helper codecrates/notary/server/src/tee_tdx.rsCalls Trust Authority and handles TDX evidence.
/prove proxycrates/notary/server/notary-tee/Proxy-backed REST surface for /api/v1/prove.
Notary Dockerfilecrates/notary/server/notary-server.DockerfileBase image path for containerized Notary runs.

Build the Notary with the TDX /info quote field:

cargo build --release --bin notary-server --features tee_quote

Run the main example:

cargo run -p tlsn-examples --example tee_ws

Infra

Repository: livylabs/livy-tlsn

This is the deployment repo. Use it for Terraform, GCP confidential VM setup, Intel Trust Authority configuration, nginx HTTPS routing, and systemd service management.

AreaPathNotes
READMEREADME.mdHigh-level infra runbook.
Terraform rootinfra/main.tfProvisions the GCP network and TDX instance.
Terraform variablesinfra/variables.tfDefines deployment inputs such as domain_name, machine type, and Trust Authority key.
Core host setupinfra/scripts/core.shInstalls system dependencies and prepares the VM.
Build scriptinfra/scripts/install.shClones livylabs/tlsn, checks out tee_dev, and builds the Notary binaries.
Service startupinfra/scripts/run.shCreates and starts systemd services for the Notary and proxy.
HTTPS setupinfra/scripts/setup-https.shConfigures nginx and Let's Encrypt for domain_name.
Deployment testtest-deployment.shChecks VM health, TDX status, service status, Trust Authority CLI, and public endpoints.

The public deployment shape is:

Public pathLocal backend
/sessionnative Notary on 127.0.0.1:7047
/notarizenative Notary on 127.0.0.1:7047
/infonative Notary on 127.0.0.1:7047
/healthchecknative Notary on 127.0.0.1:7047
/api/v1/provenotary-tee proxy on 127.0.0.1:7048
/api/v1/jobs/<job_id>/attestationnotary-tee proxy on 127.0.0.1:7048
/api/v1/jobs/<job_id>/secretsnotary-tee proxy on 127.0.0.1:7048

Branch Policy

Use tee_dev as the source of truth for implementation behavior, examples, deployment notes, and security details.

Use benchmark only for the notarization measurement table in TEE vs No TEE.

On this page