System Overview
Policy Layer
The Policy Layer defines what rules exist and how they are configured.| Component | Purpose |
|---|---|
| Policy Registry | On-chain registry of all deployed policies, referenced by CID |
| Policy Library | Reusable policy templates (spend limits, sanctions checks, KYC gates) |
| PolicyData Oracles | WASM components that fetch external data at evaluation time |
- Writing a Rego policy and WASM oracle
- Uploading to IPFS via
newton-cli - Deploying PolicyData and Policy contracts on-chain
Compute & Consensus Layer
The Compute Layer handles offchain policy evaluation by the Newton AVS operator network.| Component | Purpose |
|---|---|
| Gateway | JSON-RPC endpoint that receives tasks and routes them to operators |
| Operators | EigenLayer nodes that independently evaluate policies |
| Aggregator | Collects individual BLS signatures into a single consensus proof |
- The Gateway receives the intent and identifies the target policy
- Available operators fetch PolicyData (run WASM oracles)
- Each operator evaluates the Rego policy independently
- Each operator produces a BLS signature over the result
- The Aggregator collects signatures and produces a consensus proof once quorum is reached
Verification & Execution Layer
The Verification Layer handles onchain proof verification and transaction execution.| Component | Purpose |
|---|---|
| NewtonProverTaskManager | Core task management — creates tasks, stores responses, manages challenge windows |
| AttestationValidator | Validates BLS aggregate signatures against the operator set |
| PolicyClient | Developer’s smart contract that calls validation before executing transactions |
| PolicyClientRegistry | Tracks registered PolicyClient contracts |
Key Smart Contracts
| Contract | Purpose |
|---|---|
NewtonProverTaskManager | Task creation, response storage, challenge management |
NewtonPolicyFactory | Creates and registers new policies |
PolicyClientRegistry | Tracks registered PolicyClient contracts |
IdentityRegistry | Maps identities for policy evaluation |
AttestationValidator | Validates BLS attestation proofs on-chain |
Contract Relationships
Data Flow
A complete evaluation cycle:- Intent submitted — caller sends intent + PolicyClient address to Gateway
- Task created — Gateway creates a task pairing the intent with the policy
- Data fetched — operators execute PolicyData WASM oracles
- Policy evaluated — operators run Rego policy with intent + oracle data + params
- Signatures produced — each operator signs the result with their BLS key
- Proof aggregated — Aggregator combines signatures into consensus proof
- Proof returned — caller receives the attestation
- On-chain verification — PolicyClient validates the proof via AttestationValidator
- Transaction executes — if valid, the guarded transaction proceeds
Next Steps
Privacy Layer
How Newton protects sensitive data during evaluation
Consensus & Security
BLS aggregation, quorum thresholds, and the security model