Python
Offline in one file on your machine, or hosted with an API key. The two share every method.
The SDK you installEvery example in the TensorChain docs runs when the docs are built. The outputs you read were captured from the real software, and each claim is held by a check that ran. If a claim stopped being true, the docs would fail to build.
Register a source, licence it, send its fingerprints, train behind the gate, then pull the source and watch the model get withdrawn. It runs offline in one local file; swap one line and the same code runs against the hosted service.
import tensorchain.cloud as tc
p = tc.Local("provenance.sqlite") # or tc.Client(url, key)
p.add_source("photos")
p.license("photos", "agent:trainer", ["train"], days=30)
p.ingest_folder("photos", "data/photos")
with p.training("agent:trainer", "train", ["photos"]) as run:
run.model(train()) # on your own GPUs
p.revoke(source="photos", reason="consent withdrawn")
Captured when the docs were built
next training refused: asset_revoked:photos
The model went from usable to revoked, and the impact listed the manifest, the dataset and the model built on that source. Nothing was deleted, and the whole loop finished in under a minute on a CPU.
Every way in runs the same operations and refuses with the same codes, so nothing changes meaning when you move from a laptop to the hosted service.
Offline in one file on your machine, or hosted with an API key. The two share every method.
The SDK you installThe same names over HTTPS, one tenant per key. Another customer’s records are invisible, down to whether they exist.
HTTP referenceOne tool per verb, on a fork opened for the agent. Its writes reach the parent only by a merge.
Workspace conceptsSources, datasets, models, impact and audit in a browser, on the same records.
The web appA workspace is one file. Everything in it is named by its content, every run has an identity, and every step is judged from evidence. Each card is a cookbook: a working program that proves one capability.
An object’s name is the fingerprint of its content. Every read re-hashes it, so one flipped byte is refused, never silently served.
Read the cookbookA run completes only when its output equals the expectation you supplied up front. An identical retry returns the stored outcome, and a wrong result moves nothing.
Read the cookbookEvery step names the instruction that caused it and what it produced. Rewards follow evidence: there is no verb to declare success.
Read the cookbookOne verified child workspace per option. Merge the winner; the other stays intact as the road not taken.
Read the cookbookBad bytes go to quarantine, the original is refetched from a peer, and the audit chain is reported, never rewritten.
Read the cookbookA candidate runs against the current code in two forks. An identical result may be promoted; a different one needs the owner. Rollback is one call.
Read the cookbookTensorChain refuses before it acts, and says why in a code. Your pipeline branches on the code instead of parsing an error message.
licence_required, identity_reused or path_out_of_scope.The checks the TensorChain web app runs on are a library. A session is bound to a key the browser cannot export, every request is signed and used once, a request is bound to the screen the user saw, and secret fields are sealed in the browser.
| The attack | The check answered |
|---|---|
| A stolen session cookie, signed by another key | signature_invalid |
| A captured request, sent again | replay |
| A private field added to a payment request | input_not_allowed |
| A request naming a screen the user never saw | screen_mismatch |
| A sealed card number moved to another field | refused |
| A revoked API key, on its very next request | auth |
Everything sent from a TensorChain wallet travels as a pass: one signed envelope from a sender to a person, a network or the compute pool. A camera filter, a game move, a prompt for a badged model, an image, a voice clip, an app screen, a fine-tuning job: each is a pass of a different kind, with the same envelope and the same receipt.
The Pass SDK is one Rust core. The wallet and web apps run it as WebAssembly, Python loads the same compiled library, and servers link it directly, so a pass is the same bytes everywhere, held to one shared set of test vectors.
Passes run on Sui testnet today. TNZR, the prepaid unit they are priced in, is testnet only and not for sale.