Between an intent and the transaction it guards, three things happen: operators independently decide whether the client’s policies allow it, a quorum of their stake signs one answer, and anyone who can prove that answer wrong takes a share of the signers’ stake.
This is what happens to every row on the Tasks page.
Operators sign as they finish. The gateway stops waiting the moment the signers hold the threshold share of stake, so one slow operator cannot hold up a decision. The threshold is a gateway setting — 40% as deployed — and a client can ask for a higher one.
After a response is posted, anyone may re-run it and prove it wrong for a fixed number of blocks, counted from the response’s reference block.
| Chain | Window | Challenges |
|---|---|---|
| Ethereum | 30 blocks | disabled |
| Sepolia | 30 blocks | enabled |
| Base | 180 blocks | disabled |
| Base Sepolia | 180 blocks | enabled |
A single green check would overstate what Newton proves. Two different things are true of every response.
Evaluation is deterministic. Given the WASM output and parameters recorded with the task, re-running the Rego gives the same decision every time — which is what a challenger’s proof checks.
WASM output cannot be replayed: it read live data at a moment that has passed. Instead, every operator fetched it independently, the gateway took the median, and operators holding the quorum’s stake signed the result.
Every service in the network and what it talks to. Select a node or a row to trace it. The Network page has the live operators, contracts and chains.
| Role | Process | What it does |
|---|---|---|
| Caller | dApp or agent · newton-sdk | Signs an intent and sends it with the policy client's address to the gateway (newt_createTask), then submits the guarded call with the attestation. |
| Gateway | crates/gateway | The JSON-RPC entry point. Reads the client's policy set, runs the two-phase round with the operators — prepare, median, commit — and aggregates their BLS signatures in-process. |
| Operators | newton-operator | Restaked EigenLayer nodes. Each runs the policies' WASM, evaluates their Rego, and signs the result with its BLS key. |
| Enclave | newton-prover-enclave · per operator | A Nitro (TEE) sidecar to an operator. Runs WASM that needs a client's secrets and decrypts private data, so neither leaves the enclave. |
| Contracts | TaskManager · AttestationValidator · ChallengeVerifier | Where responses settle, attestations are stored and spent, challenges are verified and slashing executes. One set per chain. |
| Task submitter | newton-submitter | Holds the onchain task-generator role and sends createNewTask and respondToTask for the gateway. |
| Chain watcher | chain-watcher · one per chain | Listens for tasks created onchain and relays them to the gateway, so a task that starts onchain is evaluated too. |
| Challenger | newton-prover-challenger · anyone | Re-runs each response's evaluation. On a mismatch it proves it in an SP1 zero-knowledge circuit and submits the challenge, which slashes the signers. |
| Transporter | crates/transporter | Copies the source chain's operator table — BLS keys and stake — to each destination chain, so responses can be verified there. |
A task is one intent checked against a client's policies; if they all allow, the answer is a single-use attestation.
Checked and spent in the guarded call. It cannot be used again.
A task is one intent evaluated against one policy client's set of policies. It freezes that set — the ordered policies, their parameters and expiries, the policyId and revision — when it is created, and the response is validated against that snapshot.
The response carries one allowed flag for the whole set. Every policy is evaluated, and a single denial denies the intent, so no record says which policy denied. A per-policy breakdown only exists in a simulation (newt_simulatePolicy) of the set as configured now.
When the set allows, the response stores an attestation: the task, the policyId, the client, the intent and an expiry block. The expiry is the block the response landed in plus the shortest expireAfter in the set. The client consumes it once; a denial stores none.
Direct mode skips waiting for the response transaction. The policy client hands the operators' signed response to the AttestationValidator in the same transaction as the guarded call; it checks the BLS signatures, the policy set and the expiry, emits DirectTaskResponded, and returns the verdict. Only the client can call it.
A task's export holds one row per task with its frozen set in slot order, over the whole filtered history.
A policy is one Rego module and at most one WASM module, published by content ID and immutable at its address.
WASM. Fetches the outside data and returns it, unsigned. A policy without WASM evaluates against data.params alone.
Changing what a policy decides means deploying a new one, at a new address.
A policy is a contract that points at its artifacts by content ID (CID): the Rego that decides (policyCid), a params schema (schemaCid), metadata (metadataCid), and optionally a WASM module (wasmCid) with a secrets schema (secretsSchemaCid). The gateway serves every CID at /objects/{cid}.
The WASM fetches what a decision needs — a price, a risk score, a proof — and the Rego evaluates the intent against it. Each policy in a set sees only its own input: data.wasm is its WASM's output and data.params is the parameters its client configured for it. A policy without WASM evaluates against data.params alone.
The schema declares the parameters a client must supply. The values belong to each client's configuration, so one policy bound twice in a set runs with two sets of values.
A policy cannot change what it decides. The Rego, its code hash, the params schema and the WASM are written once; only metadataCid and secretsSchemaCid have setters, owner-only. A new version is a new deployment at a new address, and the same bytes deployed on another chain are an unrelated contract.
Secrets are per client: the client's owner uploads them encrypted, an operator checks them against the secrets schema, and they are only decrypted inside an operator's enclave.
A client requires an ordered set of up to eight policies, each with its own parameters, and every one of them has to allow.
A policy client is a contract Newton protects. It owns one ordered, non-empty set of up to eight policies (MAX_POLICIES). Each entry pairs a factory-registered policy with its parameters (policyParams, up to 64 KiB) and a non-zero expireAfter in blocks.
Every policy has to allow. There is no short-circuit: every one is evaluated, each against its own input, and a single denial denies the intent.
policyId = keccak256(abi.encode(POLICY_SET_DOMAIN, chainId, client, revision, policies))
The policyId commits the chain, the client, the revision and the exact ordered list, so a reorder alone is a new id. Every setPolicies bumps the revision, even when the list is identical.
Consuming an attestation compares its policyId with the client's current one. Writing a new set therefore voids every unspent attestation from the previous one, whatever its expiry. Tasks under an old set still replay, because each carries its own snapshot.
A client's allow rate is exact: the set's verdict is the response's allowed flag. A policy has no allow rate of its own, since a set's verdict does not say which policy denied.
Anyone can re-run a response and prove it wrong; a successful challenge voids the attestation and slashes 10% from every signer.
A challenge that cannot prove a mismatch reverts, so only successful ones are recorded.
For a window after each response, anyone may re-run its evaluation from the recorded inputs and, if the result differs, prove it with an SP1 zero-knowledge proof. Submitting is permissionless — there is no challenger registry.
A challenge resolves in the transaction that raises it. One that proves a mismatch invalidates the attestation and slashes 10% of each signing operator's stake through EigenLayer; operators that did not sign are untouched. One that cannot prove a mismatch reverts, so only successful challenges are ever recorded.
On a destination chain a successful challenge invalidates the attestation there, then relays to the source chain, where the slashing happens.
Tasks that use private data are challenged differently, through the enclave attestation they carry, since their inputs cannot be replayed in public.
Operators, the gateway, and the contracts on each chain; a transporter keeps destination chains in step with the source.
Transporter. Pushes a commitment to every operator's BLS key and stake from the source chain to each destination after it changes.
Operators register on the source chain's OperatorRegistry. Its state is registration, not health: registered, exiting, or whitelisted and yet to join. Liveness shows in what they sign.
Only a registered task generator can create or respond to tasks; the gateway's submitter holds that role. The gateway's timeouts and consensus tolerance are its own configuration, with no onchain source.
Ethereum (or Sepolia) is the source chain, where operators and stake live. Destination chains such as Base verify responses against a copy of the operator table: a commitment to every operator's BLS key and stake, which the transporter pushes after changes. A destination is only as current as its last confirmed table.
A chain can be whitelisted as a destination before anything is deployed there; it goes live with a deployment, not a protocol change.
An address page gathers what a wallet owns on Newton — its policy clients and policies — and the tasks on them.
A client records its owner in the PolicyClientRegistry when it registers. An unregistered client cannot be found from its owner.
A policy client records its owner in the PolicyClientRegistry on its chain when it registers, and a policy records its owner on the policy contract. An address page lists both for a wallet, with the tasks on its clients and the tasks it sent itself.
Only clients registered in the PolicyClientRegistry have an owner on record; an unregistered client cannot be found from its owner. Contract addresses — a policy client, a policy, an operator — open their own pages instead.
Clients, policies and tasks from before Newton v0.7: one policy per client, with WASM in separate PolicyData contracts.
Legacy contracts report 0.4.x (clients) or 0.5.x (policies, PolicyData). Their tasks carry no policyId or frozen set, so the explorer shows them against the client's policy now and marks them LEGACY.
Newton v0.7 introduced policy sets and put each policy's WASM on the policy itself. Before it, a policy client (v0.4) pointed at exactly one policy, with one set of parameters and one expiry, and a policy (v0.5) kept its WASM in separate NewtonPolicyData contracts, each with its own WASM CID, secrets schema and expiry.
Every contract reports its version, so the explorer can tell them apart: current policies and factories read 0.7.x and current clients 0.7.x, where legacy policies, factories and PolicyData contracts read 0.5.x and legacy clients 0.4.x.
Those contracts still exist and their tasks still have receipts, so the explorer reads them from the chain and marks them LEGACY. A legacy client shows its one policy and configuration instead of a set; a legacy policy shows its PolicyData contracts; a legacy task has no policy set and is shown against its client's policy.
Legacy tasks predate v0.7, so they carry no policyId and no frozen set. The client's policy shown with them is the one it points at now, which is the one it was evaluated against unless the client was repointed since.
Operators put restaked stake behind their signatures; that stake weighs the quorum and is what a wrong answer costs.
Operators restake through EigenLayer. Their stake weighs their signatures in the quorum, and it is what a successful challenge slashes — 10% per strategy, from every operator that signed the wrong answer.