Start here
| If you want to | Go to | You need |
|---|---|---|
| Check a TLAY result for yourself | Verify a result, with the demo example bundle | Nothing: no account, no sign-in; the file stays in your browser |
| See every role at work | The live demo, a shared sandbox with synthetic data | An email address for a one-time sign-in code |
| Run a pilot with real devices | Join the network | A short description of your fleet or your task, by email |
Quick starts by role, each with prerequisites, steps, what success looks like and the usual refusals: Buyer · Device owner · Tenant admin · Auditor · Developers · Operator (connecting your own telemetry through the edge gateway). The key authority admin works in a separate, restricted console with no public entry point; its chapter below says what it does.
The rest of this guide goes role by role. What each role can see comes from the server and the identity system; View as in the demo only switches between demo accounts and gives no real permissions.
The platform at a glance
The platform has eight kinds of users. Each sees and can do only what its role allows; the server checks every permission again, so the web pages are only a way in.
| Role | What they do | Where |
|---|---|---|
| Operator (platform) | Opens tenants, deploys and runs the service | Command line python -m tlay_api.onboard, cloud deployment scripts |
| Tenant admin | Builds cohorts, creates single-day policies or series, submits them for approval, approves purchases, watches budget, device health, audit and billing | Admin console |
| Key authority admin | Reviews and approves policies (no approval, no decryption key), revokes them, reads the key release log | Key authority console (a separate service, not on the main site) |
| Device owner | Registers a signing key, pairs devices, signs consent, sees earnings | Owner console, Owner statement; signatures are made on the owner’s own device with owner_sign |
| Device | Encrypts, signs and uploads readings under a policy | Device client (ESP32 firmware or the Python reference client) |
| Buyer | Browses the marketplace, requests purchases, runs or subscribes to tasks, reads and exports results | Marketplace, Buyer result, Results & API keys |
| Auditor | Read-only review of policies, releases, receipts and the transparency log | Auditor |
| Anyone | Verifies a result with a receipt id or receipt file | Public verify (no TLAY account; the public demo itself is behind an email check) |
Four rules hold in every flow:
- Device data is stored only as ciphertext, and only a program approved by the policy, running in a protected environment, can decrypt it.
- Buyers receive only a group result with differential privacy noise. They never get any single device’s data, or even how many devices uploaded.
- Each (cohort, day) feeds one release only: either that day’s statistic or one training run that uses it as an input day (a training run uses 8 days at once, or up to 32 when it trains on every label day). The privacy budget ε is reserved before the run and is not refunded if the run fails.
- Every step leaves a signed receipt and a transparency log entry that anyone can check afterwards.
How it works: architecture and flows
This chapter shows the whole system in one picture, then follows one computation through it. Colours mark who can see what: plaintext exists only on devices and inside the protected environment (a trusted execution environment, TEE). The operator’s control plane only stores and moves ciphertext. A separate key authority hands out decryption keys, and only to programs whose image it approved. Everything that gets signed can be checked by anyone.
- Upload. The device signs each record, pads it to 1,024 bytes and encrypts it (HPKE) to the public key of that day’s policy. The control API checks only the outer routing fields and signs an upload receipt, which the device keeps.
- Consent. On their own device, the owner recomputes the policy hash, checks the key descriptor against the pinned key authority key, and signs consent. The server cannot sign for them.
- Store. The ciphertext is written once to the object store, and only the first record per device and day is kept. Sealing the day fixes a snapshot manifest; only a salted commitment to it is published.
- Reserve the budget. A buyer starts a task. In one transaction the release service locks every device on the roster and debits ε. A day of a cohort feeds one release only.
- Prove. The program in the protected environment makes an ephemeral recipient key and a receipt key, binds both into its hardware attestation, and presents it to the key authority.
- Release the key. The key authority checks the image digest, the policy and the reservation, wraps the policy’s private key to the program’s recipient key, and signs an attestation record.
- Compute. The program reads the ciphertext (read only), decrypts it, re-checks each signature and consent, counts a missing or invalid record as 0, and computes a statistic or trains a model with differential privacy noise.
- Commit. The program signs its candidate result with the receipt key. The release service checks the attestation record and every binding, commits with a compare-and-swap, and signs.
- Log and witness. The release goes into the transparency log. A witness cosigns the log’s new tree head only if it is consistent with the last head it cosigned.
- Deliver and check. The buyer downloads a result bundle (result, receipt, attestation record, log inclusion proof and, on the demo, witness cosignatures) and checks it offline against trust anchors from this site. Each valid contribution is paid once.
How the program gets the key
The program holds no service token: its identity is its hardware attestation. The key authority trusts an approved image digest, not the operator. The release service trusts the receipt key that the attestation record binds.
States of a release
A release moves only forward: DRAFT → COLLECTING → SEALED → RESERVED → RUNNING → COMMITTED → SETTLEMENT_PENDING → SETTLED. Once the budget is reserved it is not refunded, and nothing that failed to commit is ever recomputed: FAILED_BEFORE_RESERVATION (nothing spent), FAILED_SPENT (spent, not committed) and PAYMENT_FAILED (committed, payment failed).
What a result bundle proves
Each layer is signed with a different key, from the inside out: the result bytes and salt open the result commitment; the program’s receipt key signs the candidate; the key authority signs the attestation record (image, policy, receipt key); the release service signs the commit; the transparency log includes it and witnesses cosign the head. Verifiers report each layer separately and never merge them into one “verified” badge. The checks are listed under Public verify. The Python reference, the standalone script and the browser verifier run the same test vectors, so they reach the same verdicts.
The privacy budget
The privacy unit is one device’s day. Each release debits every device on its roster, and a device that has spent its cap of ε 4 within any 365 consecutive days takes part in nothing more until its oldest debited day leaves that window (ADR 0058, proposed). This is how the demo’s fault-stop model line spends it:
Where it runs
| Mode | Where | What it shows |
|---|---|---|
local_simulation (M0) | Docker Compose locally and the live demo, reset every night | The protocol, the state machines and every refusal. Attestation is simulated with test keys |
attested_pilot (M1) | Google Cloud Confidential Space on Intel TDX; NVIDIA H100 in confidential mode for GPU training | Keys released only to an attested, approved image; the key authority also ran as three TDX replicas; images rebuild bit for bit. Synthetic data only |
| Hardened (P2, partial) | Cloud KMS, an anchored transparency log, rollback detection, a witness protocol | Less trust in the operator. Still missing: witnesses and state run by someone else, a public log, public source |
What each part has reached, with its evidence and what is not done yet, is on the Trust page.
Getting started
After you sign in, you see only the tabs your role can use. The banner at the top of the page tells you which kind of environment you are in.
Signing in
- Production (requirement, not live yet): a production deployment signs users in through the organization’s single sign-on (OIDC). The platform supports it, but no deployment uses it yet: the cloud pilot was not connected to an identity provider. A tenant admin first sends an invitation that binds your email to your account. Owners who already have a signing key must confirm a new sign-in binding with their own signature; an admin cannot do it for them.
- Live demo: you sign in with a one-time code sent to your email, then switch between demo accounts with View as in the top right. Reset demo sessions in the footer appears only in the demo.
Tabs by role
| Role | Tabs |
|---|---|
| Tenant admin | Task overview, Admin console, Verification details, Notifications, Public verify |
| Buyer | Marketplace, Buyer result, Verification details, Results & API keys, Notifications, Public verify |
| Device owner | Owner console, Owner statement, Notifications, Public verify |
| Auditor | Auditor, Notifications, Public verify |
| Visitor (not signed in) | Public verify |
Banner and labels
Labels on pages and receipts have fixed meanings and are never mixed:
| Label | Meaning |
|---|---|
| Synthetic data | Generated data, not real device readings |
| Simulated security | Run locally without hardware isolation; the host administrator can read plaintext |
| Attested compute | Computed in Google Cloud Confidential Space, with the hardware attestation checked by the key authority |
| Simulated payment | Simulated payment; no money moves |
| Confirmed payment | Appears only after an on-chain transaction is confirmed; never shown in the pilot |
The banner describes the whole environment. Each task’s own security label (Attested compute or Simulated security) on its task card and receipt is what counts for that task.
Tenant admin
Admins do all the preparation from cohort to settlement in the Admin console, but cannot approve a policy for the key authority or sign consent for an owner.
1. Invite people
Create owners, buyers or auditors under Add a person (admins cannot create other admins), then send sign-in invitations to their email under Invitations. For owners who already have a key, the invitation shows PENDING_OWNER_CONFIRMATION until the owner confirms it with their own signature.
2. Build a cohort
A cohort is a write-once roster of devices. Its size N is public and fixed. A rostered device that does not upload on a given day counts as 0 in that day’s statistic. A device can belong to only one cohort.
3. Create a task: single-day policy or daily series
A single-day policy suits a one-off statistic:
- Fill in the form and click Preview policy. The server fills in the fixed parts (approved program, value bounds, release service key) and checks the rules.
- If it passes, click Create draft policy, then submit it to the key authority. Submitting is not approving: the draft appears under Drafts waiting for the key authority.
- If you name result recipients, the result is sealed to those buyers inside the protected environment, and no one else, the platform included, can open it.
A daily series suits a statistic repeated every day. The key authority approves it once, each owner signs one standing consent, and a child policy is created automatically for each day.
- A series runs at most 92 days. The sum of ε over all days cannot exceed the per-device cap (4 in the pilot); the form shows “days × ε per day = total ε” as you type. For long series, keep ε per day small, for example 0.1 a day for 30 days, 3 in total.
- Each day is still its own privacy scope with its own key. A child policy is created automatically 24 hours before its day starts.
- To end a series early, click Stop series. Child policies already created keep their own validity periods.
4. Seal and run
Once a day’s collection window and grace period have passed, the scheduler seals the day automatically and starts tasks for buyers who subscribed to auto-run; you can also click Run scheduler now on the Scheduler card. The Policies and lifecycle and Releases tables show which step each task is at. Only admins can see the number of valid consents and accepted uploads.
5. Handle purchase requests
A buyer’s request grants nothing by itself; the buyer can run the task only after an admin approves. Approval re-checks the rules: a task whose result is sealed to named buyers cannot be sold to anyone else.
6. Operations views
The Admin console has four sub-pages at the top: Privacy budget, Device health, Audit log and Billing (simulated).
- The audit log is append-only, and its chain head is written to the transparency log at intervals. Verify chain checks that the chain has not been altered.
- Billing is simulated. Platform fee and reward per contribution are set under Commercial terms; the ledger always balances to 0.
Key authority admin
Device data can be decrypted only under a policy the key authority has approved. This step happens in a separate console that neither the control plane nor tenant admins can reach.
Opening the console
- The console is served by the key authority service itself (
/admin/console), not by the main site. In the cloud it is reachable only through an IAP port forward. - Unlock it with the key authority admin token and enter your name, which is recorded with every decision. The token is kept only in page memory and is forgotten when you click Lock or after 15 minutes of inactivity.
Approving policies
- Pending policy approvals lists drafts submitted by the control plane. A submission authorizes nothing by itself.
- Check each item under What changes compared with the approved policy: yellow marks a change, blue an addition or removal. Pay attention to ε, expiry, result recipients and the program digest.
- Tick I reviewed every changed field, then click Approve policy; if you disagree, Reject it and give a reason.
- A daily series needs approval only once. After that, the key authority recomputes and checks each day’s child policy itself, and refuses any that falls outside the series, comes from a changed template or belongs to a revoked series.
Revocation and the key release log
- Policies can be revoked under Approved policies; no keys are released for a revoked policy. To stop all key releases at once, you can also disable the KEK version in Cloud KMS.
- The Key release log records every release decision. Denials carry a reason code, for example ENV_OVERRIDE_NOT_ALLOWED (the program was started with a parameter that is not allowed) or PROJECT_NOT_ALLOWED (it ran in a cloud project that is not allowed).
- KEK health checks that the key-encryption key is available.
Device owner
Owners decide which tasks their devices’ data is used for. Every authorization is signed with your own signing key on your own device; neither the browser nor any admin ever holds that key.
1. Register your signing key (once)
Generate a key on your own computer or phone and print its public key:
python -m tlay_client.owner_sign --key-file ~/.tlay/owner.key --keygen
Paste the printed public key into Owner signing key and authorizations in the Owner console. A public key can be registered only once. Later sign-in bindings, payout address changes and task consents are all signed with the same command.
2. Pair a device
- Click Create pairing code. The code is shown once, is valid for 10 minutes and works only once.
- Enter the code on the device (the Python reference client uses the
tlay_client.pair_devicecommand shown on the page). The device generates its own key and shows its key fingerprint. - Click Check for paired devices and compare the fingerprint on the page with the one the device shows. Confirm only if they match.
- Sign the device binding shown below the fingerprint with
python -m tlay_client.owner_signon your own device and paste the signature: it states that this device key is yours. The protected workload counts a device's records only if this binding and your consent both verify, so Confirm waits for it. A rotated key needs a new binding; devices still missing one are listed under Bind your devices.
To check what the platform holds under your name, run the owner audit on your own device: python -m tlay_client.owner_audit --api <deployment>/api --key-file ~/.tlay/owner.key (with your owner token in TLAY_OWNER_TOKEN). It verifies, against the key only you hold, that the registered owner key is yours and that every device binding stored under your name was signed by you, and lists devices whose current key is not bound. It exits with 1 if anything does not verify.
Managing devices: Stop pauses uploads (it can be resumed); Rotate key gives the device a new key and is refused while the day’s data is not yet sealed; Retire removes the device for good, and its id is never reused. None of these change sealed data or published results.
3. Consent to a single-day task
- Read the terms. Policies the key authority has not approved never appear here.
- Copy the
owner_signcommand from the page and run it on your own device. It recomputes the policy hash itself, prints the terms from the policy document, and signs only after you confirm. - Paste the signature back into the page and click Give consent.
To revoke, click Revoke under Authorization terms. If you revoke before the day is sealed, your records are excluded (counted as missing = 0); after sealing, revocation affects only later days, and published results are not withdrawn. Each revocation comes with a withdrawal receipt signed by the release service, with the time it was notarized: download and keep it. The owner audit (python -m tlay_client.owner_audit) checks your receipts against the days your devices were counted in.
4. Standing consent for a daily series
One signature covers every day of the series, up to its end day. The signing steps are the same as for single-day consent. ε is still debited day by day, and the series total stays within the per-device cap. You can revoke at any time under the same rules. Days already covered by a standing consent no longer appear under Awaiting your consent.
5. Device health and earnings
- Device health shows only your own devices: last upload, consecutive missing days and upload errors.
- Contributions and payments lists the reward for each valid contribution. Rewards are paid per valid, non-duplicate contribution, regardless of data size or what the result turned out to be.
- Owner statement totals by month and exports to CSV; in the pilot every entry was a Simulated payment.
- The payout address is used only for on-chain settlement; changing it also requires an
owner_signsignature.
Buyer
A buyer buys the differentially private result of a defined statistics task. Buyers never get any single device’s data, or even how many devices uploaded.
1. Browse the marketplace and request a purchase
- Price = public N × reward per valid contribution + platform fee. These are fixed terms and do not change with the number of devices that actually upload.
- When you request a purchase, a simulated prepayment is held in escrow (HELD). It is returned if the request is rejected or the task never produces a result.
- The request grants nothing by itself; it waits for a tenant admin to approve it.
If a task’s result is sealed to named buyers and you are not one of them, the marketplace says why and refuses the purchase: you could never open the result.
2. Run a task and read the result
- In Buyer result, choose a task you are entitled to and click Run task. Tasks you subscribed to with auto-run start by themselves after sealing; there is nothing to click.
- The job goes through reserved, running, committed and settled, then shows the result. Each (cohort, day) is released only once.
- The result card states the noise size. Missing or invalid records count as 0 on the fixed roster, so this is not an “average of online devices”.
- When the result is sealed to you, the platform stores only ciphertext; open it locally with your own result key (see the verify command in the next step).
3. Export a result bundle and verify it offline
A result bundle contains the result (or the sealed document), the receipt, the verification report, the transparency log inclusion proof and the trust anchors. It verifies without a network connection:
python3 tlay_verify.py tlay-result-rel_xxx.json --anchors pinned.json --strict
With --strict it accepts only a complete PASS whose attestation record is not simulated, so a bundle from the demo (simulated attestation) fails it; without it, a bundle missing a layer (no result, no inclusion proof, a sealed result) is reported PARTIAL and still exits 0. Without Python, open compute.tlay.io/verify: it runs the same checks in your browser and the file stays on your computer. Get tlay_verify.py and an example bundle from the trust anchors page. For a result sealed to you, the same file opens it on your computer and checks the commitment and the output policy too: python3 tlay_verify.py tlay-result-rel_xxx.json --anchors pinned.json --buyer-id buyer-1 --result-key buyer-1.key (the key file holds your X25519 result key in base64; it is read, never printed). Add --result-out result.json to use what was checked: it writes the result bytes that matched the signed commitment to a new file (mode 0600), only if the run exits 0 (with --strict, only for a PASS with hardware attestation), and writes nothing on FAIL. The full TLAY client does the same: python -m tlay_client.verify_receipt --bundle tlay-result-rel_xxx.json --anchors pinned.json --buyer-id buyer-1 --result-key-file ~/.tlay/buyer-1.result.key.
Get the public keys in pinned.json from a channel outside the platform and pin them. Using only the anchors the platform gives you amounts to trusting the platform.
4. API keys
- Scopes:
results:read(read results, receipts, verification and exports) andjobs:run(run purchased tasks); validity 1–365 days. - Use:
Authorization: Bearer <key>. Keys can reach only buyer endpoints and never get admin, owner or auditor rights. - A key is shown once and the server stores only its hash. It can be revoked at any time and stops working immediately.
5. Notifications
In-app notifications contain only information you can already see. You can also configure a webhook: the URL must be public HTTPS, every delivery is signed with the deployment's published Ed25519 key (and, if you keep one, a shared HMAC secret), and failed deliveries are retried automatically.
Auditors and public verification
Auditors review the tenant’s policies, releases and receipts read-only; anyone can verify a result by its receipt id without a TLAY account (on the public demo, after its email check), or offline with a result bundle. Neither can see participation counts, single-device data or result values.
Auditor view
The Auditor page covers the audit scope, the transparency log’s signed tree head and integrity, all policies (including key authority signature checks), releases and receipts (with inclusion proofs), and the trust anchors.
Public verify
In Public verify, enter a receipt id (like rcpt_…), or upload a receipt file or result bundle. When you upload a bundle, the result commitment is checked locally in your browser; the result is never sent to the server.
| Check | What it verifies |
|---|---|
release_commit_signature | The release service’s signature over the committed receipt |
attestation_record_signature | The key authority’s signature over the attestation verification record |
attestation_verdict | Whether the hardware attestation was accepted (SIMULATED in local simulation) |
workload_candidate_signature | The program in the protected environment signed the candidate result with its bound key |
layer_consistency | Candidate, attestation record and commit refer to the same release, policy, program and result |
result_commitment | The result and the buyer’s salt open the signed result commitment (only a buyer who holds the result can check this) |
transparency_inclusion | The receipt is included under the transparency log’s signed tree head |
head_witnessed | That entry is also in a tree head the listed witnesses cosigned after checking it against the heads they cosigned before (shown only when it passes or fails) |
bundle_header | The copies of the release and policy fields in the bundle agree with the signed receipt |
policy_authorization | The key authority’s approval of this policy is in the log, signed before the key was released |
output_policy | The result has only the fields its schema allows, bound to this release and policy (only a holder of the result can check this) |
attestation_evidence | Google’s Confidential Space token in the bundle verifies and states this image, Intel TDX and debugging off (shown only for a bundle that carries it) |
A valid signature shows who signed what; it does not prove the computation is mathematically correct. The public verify page is computed by this deployment. For an independent check, use the offline command from the previous section with trust anchors obtained outside the platform.
End-to-end example: a daily series
This is a run on the Google Cloud pilot on October 6, 2026: a synthetic population of 1,000 devices and 250 owners, computing “average daily runtime per device”, with the computation inside an Intel TDX confidential VM.
- The tenant admin creates a 2-day series in Policy series (October 7–8, ε = 1.0 per day, 2.0 in total), subscribes buyer-1 and turns on auto-run.
- The key authority admin checks it and approves the series, once.
- 250 owners each sign one standing consent. In this synthetic run the simulator signs for all 250 with their test keys, which took about 5 seconds in total; it is not an estimate of how long 250 people would take.
- The scheduler creates the October 7 child policy (series day 0) 24 hours before the day starts; the key authority recomputes and checks it, then generates that day’s key.
- Devices encrypt and upload under the child policy: 975 upload successfully and 25 are offline (counted as 0).
- The scheduler seals the day and starts a job for buyer-1; the release service first debits ε = 1.0 from each device.
- The protected environment starts, presents its hardware attestation (
GCP_INTEL_TDX) to the key authority, receives the key, decrypts, computes, adds noise and seals the result to buyer-1. - The release service checks the signatures, commits, writes to the transparency log and anchors it, then settles contributor rewards (simulated). From job start to settlement: 69 seconds.
- buyer-1 exports the result bundle and verifies it offline on their own computer: every signature check and the transparency log inclusion proof pass.
- October 8: with no new approval or signature from anyone, the scheduler creates the child policy 24 hours ahead and steps 5–9 repeat.
Each device spends at most ε = 2.0 on this series, within the cap of 4; owners can revoke their standing consent before any day is sealed.
FAQ and error codes
Most refusals show a reason code on the page. These are the most common.
| Reason code | Where | Meaning | What to do |
|---|---|---|---|
NOT_A_RESULT_RECIPIENT | Marketplace | The result is sealed to named buyers and you are not one of them | Ask the tenant admin to name you as a result recipient in the next policy |
SCOPE_ALREADY_RELEASED | Running a task | This (cohort, day) has already been released | Entitled buyers read the published result directly; it is never recomputed |
CONSENT_REQUIRED | A device uploading; starting a training job | Upload: this device’s owner has not consented to the policy, or has revoked. Training: not every owner on the roster holds an active consent to the training policy | Upload: nothing to fix unless the owner wants to take part; the device counts as 0 that day and the day can still be sealed and released. Training: the job can start only once every owner on the roster has consented |
SIGNATURE_INVALID | Owner submits a signature | The signature was not made over this message with your registered key | Copy the command from the page again and sign with the registered key file |
PAIRING_CODE_INVALID | Device pairing | The pairing code is wrong, expired or already used | Create a new pairing code in the Owner console |
KEY_MISMATCH | Confirming a pairing | The confirmed fingerprint does not belong to this device | Re-check the fingerprint the device shows; if it does not match, reject the pairing |
ROTATION_BLOCKED_COLLECTING | Rotating a device key | Data accepted today is not sealed yet | Rotate after the day is sealed; if you suspect the key leaked, click Stop first |
PAIRING_CODE_LIMIT | Creating a pairing code | More than 5 unused codes, or more than 20 per hour | Cancel unused codes, or try again later |
API_KEY_SCOPE_MISSING | Using an API key | The key lacks this scope (for example jobs:run) | Create a key with the scope you need |
API_KEY_ROUTE_NOT_ALLOWED | Using an API key | API keys can reach only buyer endpoints | Sign in to the web app for administrative actions |
EPSILON_OUT_OF_RANGE | Admin creates a policy | ε is outside the allowed range | Single-day ε at most 4; a series total within the per-device cap |
SERIES_OVERLAP | Admin creates a series | The cohort already has a series covering these days | Choose other days, or stop the old series first |
ROLLBACK_DETECTED | Any action | The database is behind the anchored transparency log (for example, an old backup was restored); the service has stopped | Contact the operator to recover; budget is not refunded and results are not recomputed |
ENV_OVERRIDE_NOT_ALLOWED, PROJECT_NOT_ALLOWED, ENV_PIN_MISMATCH | Key release log | The runtime environment does not match the policy; no key was released and the task does not run | The operator investigates the deployment configuration |
Why does the result differ from the average I expected? Missing or invalid records count as 0 on the fixed roster, and the result has differential privacy noise added; the result card gives the theoretical noise size.
Does a published result change if I revoke consent? No. If you revoke before sealing, your records are excluded; after sealing, revocation affects only later days.
What happens when a device’s privacy budget runs out? Releases that would take it past the cap are refused at reservation and do not run, until its oldest debited day leaves the 365-day window (ADR 0058, proposed). A debit is never refunded. Admins can see devices near the cap ahead of time under Privacy budget.
Why can’t buyers and auditors see how many devices took part? The participation count itself leaks information, so only the tenant’s admins can see it; that is also why the price is based on the public N.
Want to try it with your fleet? Write to info@tlay.io, or read the thesis behind the platform.
Join the network Book a demo























