Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

496 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—
 โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
 โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•‘   โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•
 โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•   โ•šโ•โ•    โ•šโ•โ•โ•โ•โ•โ•

The ledger that ticks when AI agents work โ€” not when miners do.

A causally-driven distributed ledger purpose-built for AI agent economies.
Replace physical time + miners with verifiable work + TEE attestation.

Rust Stars Discord Twitter

โšก Quick Demo ย ยทย  ๐Ÿ›  Use Cases ย ยทย  ๐Ÿ— Architecture ย ยทย  ๐Ÿ“ฆ Get Started ย ยทย  ๐Ÿ“š Docs ย ยทย  ๐Ÿ’ฌ Discord


Setu Demo


โšก What is Setu

Tip

30-second pitch: If you're shipping AI agents that act thousands of times per second, you need a substrate that records, proves, and settles their work โ€” without the cost, latency, or trust assumptions of traditional blockchains. Setu is that substrate.

If you're building AI agents that need to:

๐Ÿ” Prove work was done

With cryptographic TEE attestation

๐Ÿ’ธ Get paid by other agents

In milliseconds, no gas wars

๐Ÿ† Build verifiable reputation

On-chain, queryable by anyone

๐Ÿ”— Coordinate without trust

No central server, no oracle

...Setu gives you the substrate.

๐Ÿ†š Setu vs Ethereum

Think of Setu as "Ethereum for AI agents" โ€” except:

ย  ๐ŸŸง Ethereum ๐ŸŸฆ Setu
Block trigger โฐ Physical time (12s) โšก Causal work events
Execution ๐Ÿ“– Public VM ๐Ÿ›ก TEE enclave (Nitro)
Ordering ๐Ÿ•’ Global clock ๐Ÿ”ข Vector Logical Clock
Throughput ~30 TPS 200K-300K TPS
Finality ~12 seconds 50-100ms
Gas auctions ๐Ÿ’ธ Yes โœจ None

๐Ÿš€ Quick Demo

Note

60 seconds. Zero config. First transaction recorded.

# 1๏ธโƒฃ  Clone and start a local Setu network
git clone https://github.com/AdvaitaLabs/Setu.git && cd Setu
docker-compose -f docker/docker-compose.multi-validator.yml up -d

# 2๏ธโƒฃ  Submit a transfer between two agents
curl -X POST http://localhost:8080/api/v1/transfer \
  -H "Content-Type: application/json" \
  -d '{"from": "agent_alice", "to": "agent_bob", "amount": 100}'

# 3๏ธโƒฃ  Query balance โ€” finalized in ~50ms
curl http://localhost:8080/api/v1/balance/agent_bob

Tip

โœ… Work recorded ย ยทย  โœ… TEE-attested ย ยทย  โœ… Finalized in 50ms

Want more? See the full API reference or jump to Run Your Own Node.


๐Ÿ›  What You Can Build

๐Ÿค– Agent Work Tracker

Record every action an AI agent takes, with cryptographic proof of execution.

Build "git for AI agents" โ€” append-only, verifiable, queryable. Any auditor can reconstruct what an agent did and prove nothing was tampered with.

๐ŸŽฏ Best for: AI audit trails, compliance, agent debugging

๐Ÿ† Agent Reputation System

Let agents accumulate verified work history.

Other agents (or humans) can query: "Has this agent reliably completed similar tasks?" โ€” get a cryptographically signed answer in milliseconds. Trust networks without central authorities.

๐ŸŽฏ Best for: Agent marketplaces, AI staffing, trust networks

๐Ÿ’ธ Agent-to-Agent Payments

Settle micropayments between agents in ~50ms.

No gas auctions, no human approvals, no block-time waits. At 200K+ TPS, per-second pricing becomes realistic.

๐ŸŽฏ Best for: AI service marketplaces, agent economies

๐Ÿ”— Multi-Agent Coordination

When multiple agents collaborate, Setu records causal dependencies via VLC.

Reconstruct "who did what, when, and what depended on what." Critical for debugging multi-agent systems and assigning responsibility.

๐ŸŽฏ Best for: Multi-agent frameworks, swarm intelligence

๐Ÿ›ก Verifiable AI Inference

Run inference inside a TEE (Nitro Enclave). Setu records the attestation.

Verify: "This output came from this model, this hardware, this input." Useful for AI auditing, compliance, adversarial-proof inference.

๐ŸŽฏ Best for: Regulated AI, medical AI, financial AI

๐Ÿงช ...And More

Setu is a substrate. If your use case involves agents acting at scale with verifiable work, reach out.

๐Ÿ“ Open an issue ย ยทย  ๐Ÿ’ฌ Join Discord

๐ŸŽฏ Best for: Your next idea


๐Ÿค” Why Setu

๐ŸŸง Why not just put agent records on Ethereum / Solana?

AI agents act thousands of times per second. At Ethereum's 30 TPS and gas costs, a single agent doing routine work would saturate the chain and pay $1,000+/day in gas. Setu's 200K-300K TPS and no-gas design makes per-action recording realistic.

๐ŸŸฆ Why not just use a database?

Because the whole point is trustless verifiability. If an agent's reputation lives in a database, the database operator controls it. Setu lets the agent control its own work history, with the network providing tamper-evidence.

๐ŸŸช Why not use a centralized AI execution service?

Centralized services can lie about what they ran. Setu uses TEE attestation (AWS Nitro) so anyone can later verify: "this exact model ran on this exact hardware with this exact input." You don't trust us. You verify.

๐ŸŸฉ Is this a Layer 1? Layer 2?

Neither, exactly. Setu is a causally-driven distributed ledger โ€” closer to a DAG-based consensus network than a traditional blockchain. It can settle to Bitcoin or Ethereum if you need finality on a public chain, but it doesn't need one to function.

๐ŸŸจ Is Setu production-ready?

Setu is in active development. The core consensus, VLC, TEE execution, and HTTP API are working and benchmarked. Production mainnet is on the roadmap. Use the current code for testnets, research, and pre-production prototypes.


๐Ÿ— How Setu Works

Architecture

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                              Setu Network                                    โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘         Validator Nodes         โ•‘           Solver Nodes                     โ•‘
โ•‘                                 โ•‘                                            โ•‘
โ•‘  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ•‘   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ•‘
โ•‘  โ”‚    ConsensusEngine       โ”‚   โ•‘   โ”‚      TeeExecutor         โ”‚             โ•‘
โ•‘  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚   โ•‘   โ”‚                          โ”‚             โ•‘
โ•‘  โ”‚  โ”‚  DAG   โ”‚ โ”‚   VLC   โ”‚  โ”‚   โ•‘   โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚             โ•‘
โ•‘  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚   โ•‘   โ”‚  โ”‚   EnclaveRuntime   โ”‚  โ”‚             โ•‘
โ•‘  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚   โ•‘   โ”‚  โ”‚  (Mock / Nitro)    โ”‚  โ”‚             โ•‘
โ•‘  โ”‚  โ”‚  ValidatorSet      โ”‚  โ”‚   โ•‘   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚             โ•‘
โ•‘  โ”‚  โ”‚  (Leader Election) โ”‚  โ”‚   โ•‘   โ”‚                          โ”‚             โ•‘
โ•‘  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚   โ•‘   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ•‘
โ•‘  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚   โ•‘                                            โ•‘
โ•‘  โ”‚  โ”‚   AnchorBuilder    โ”‚  โ”‚   โ•‘   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ•‘
โ•‘  โ”‚  โ”‚  (Merkle Roots)    โ”‚  โ”‚   โ•‘   โ”‚   SolverNetworkClient    โ”‚             โ•‘
โ•‘  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚   โ•‘   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ•‘
โ•‘  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ•‘                                            โ•‘
โ•‘                                 โ•‘                                            โ•‘
โ•‘  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ•‘                                            โ•‘
โ•‘  โ”‚  GlobalStateManager      โ”‚   โ•‘                                            โ•‘
โ•‘  โ”‚  (Sparse Merkle Trees)   โ”‚   โ•‘                                            โ•‘
โ•‘  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ•‘                                            โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                          P2P Network (Anemo / QUIC)                          โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”‘ The 5 Core Innovations

๐ŸŸข Innovation What it does Why it matters
๐ŸŒ DAG-Based Consensus DAG-BFT with leader rotation High throughput without sacrificing finality
โฑ Vector Logical Clock Causal ordering of distributed events Agents act in parallel; ordering still verifiable
๐Ÿ›ก TEE Execution Trusted Execution (AWS Nitro) Verifiable AI inference, private data, attested output
๐Ÿ”€ Subnet Architecture in development Multi-subnet support Horizontal scaling โ€” each workload its own subnet
๐ŸŒณ Merkle State Commitment Binary + Sparse Merkle Trees Light clients verify state without full sync

๐Ÿ”„ Consensus Flow

  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  Event  โ”‚ โ”€โ–บ โ”‚    TEE    โ”‚ โ”€โ–บ โ”‚ Verifier โ”‚ โ”€โ–บ โ”‚   DAG    โ”‚ โ”€โ–บ โ”‚  State  โ”‚
  โ”‚ Submit  โ”‚    โ”‚ Execution โ”‚    โ”‚  Adds to โ”‚    โ”‚ Folding  โ”‚    โ”‚ Commit  โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚   DAG    โ”‚    โ”‚ (Anchor) โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ–ฒ                                                โ–ฒ
       โ”‚                                                โ”‚
   Agent / Client                                ConsensusFrame
                                              Quorum 2/3+1 voting

Key Concepts:

  • ๐ŸŸข Event โ€” Atomic state change with TEE attestation
  • ๐ŸŸก Anchor โ€” Checkpoint containing events + Merkle roots
  • ๐Ÿ”ต ConsensusFrame (CF) โ€” Voting unit for finalization
  • ๐ŸŸฃ VLC โ€” Vector Logical Clock for causal ordering

Deeper dive: docs/architecture.md


๐Ÿ“ฆ Get Started

๐ŸŸข Path 1 ยท Use Setu in your app

Tip

Most users start here. You don't need to run your own node.

# Submit a transfer
curl -X POST http://your-validator:8080/api/v1/transfer \
  -H "Content-Type: application/json" \
  -d '{"from": "alice", "to": "bob", "amount": 100}'

# Query balance
curl http://your-validator:8080/api/v1/balance/bob

# Query an object
curl http://your-validator:8080/api/v1/object/<object_id>

# List recent events
curl http://your-validator:8080/api/v1/events

Note

๐Ÿ’ก Python / TypeScript / Go SDKs are on the roadmap. For now, any HTTP client works.

๐ŸŸฆ Path 2 ยท Run Your Own Node

๐Ÿ“‹ Prerequisites
  • Rust 1.75+ (2021 edition)
  • RocksDB for persistent storage
  • Docker for containerized deployment (optional)
๐Ÿ”จ Build from source
git clone https://github.com/AdvaitaLabs/Setu.git
cd Setu
cargo build --release
cargo test --all
โš™๏ธ Run a Validator
export VALIDATOR_ID=validator-1
export VALIDATOR_HTTP_PORT=8080
export VALIDATOR_P2P_PORT=9000
export VALIDATOR_DB_PATH=/tmp/setu/validator

./target/release/setu-validator
๐Ÿงฎ Run a Solver
export SOLVER_ID=solver-1
export SOLVER_PORT=9001
export VALIDATOR_ADDRESS=127.0.0.1
export VALIDATOR_HTTP_PORT=8080

./target/release/setu-solver
๐Ÿ’ป Submit Transactions via CLI
./target/release/setu balance --address <ADDRESS>
./target/release/setu transfer --from <FROM> --to <TO> --amount 1.23
# For raw smallest units, use: --amount-units 123000000
๐Ÿณ Docker Deployment (multi-validator)
cd docker
./scripts/build.sh
docker-compose -f docker-compose.multi-validator.yml up -d
docker-compose logs -f

๐Ÿ“ Project Structure

Click to expand the full project tree
Setu/
โ”œโ”€โ”€ consensus/              # DAG-based consensus implementation
โ”‚   โ”œโ”€โ”€ dag.rs             # DAG data structure
โ”‚   โ”œโ”€โ”€ engine.rs          # Main consensus engine
โ”‚   โ”œโ”€โ”€ anchor_builder.rs  # Anchor creation with Merkle trees
โ”‚   โ”œโ”€โ”€ folder.rs          # ConsensusManager for CF management
โ”‚   โ””โ”€โ”€ vlc.rs             # VLC integration
โ”‚
โ”œโ”€โ”€ types/                  # Core type definitions
โ”‚   โ”œโ”€โ”€ event.rs           # Event, EventId, EventStatus
โ”‚   โ”œโ”€โ”€ consensus.rs       # Anchor, ConsensusFrame, Vote
โ”‚   โ”œโ”€โ”€ object.rs          # Object model (Coin, Profile, etc.)
โ”‚   โ””โ”€โ”€ merkle.rs          # Merkle tree types
โ”‚
โ”œโ”€โ”€ storage/                # Storage layer
โ”‚   โ”œโ”€โ”€ memory/            # In-memory implementations (DashMap)
โ”‚   โ”œโ”€โ”€ rocks/             # RocksDB persistent storage
โ”‚   โ””โ”€โ”€ state/             # GlobalStateManager, StateProvider
โ”‚
โ”œโ”€โ”€ crates/
โ”‚   โ”œโ”€โ”€ setu-vlc/          # VLC Hybrid Logical Clock library
โ”‚   โ”œโ”€โ”€ setu-merkle/       # Merkle trees (Binary + Sparse)
โ”‚   โ”œโ”€โ”€ setu-keys/         # Cryptographic key management
โ”‚   โ”œโ”€โ”€ setu-enclave/      # TEE abstraction (Mock + Nitro)
โ”‚   โ”œโ”€โ”€ setu-network-anemo/# Anemo-based P2P network
โ”‚   โ”œโ”€โ”€ setu-transport/    # HTTP/WS/gRPC transport layer
โ”‚   โ”œโ”€โ”€ setu-protocol/     # Protocol message definitions
โ”‚   โ””โ”€โ”€ setu-core/         # Shared core utilities
โ”‚
โ”œโ”€โ”€ setu-validator/         # Validator node binary
โ”œโ”€โ”€ setu-solver/            # Solver node binary
โ”œโ”€โ”€ setu-cli/               # CLI tool
โ”œโ”€โ”€ setu-rpc/               # RPC layer
โ”œโ”€โ”€ setu-benchmark/         # TPS benchmark tool
โ”‚
โ”œโ”€โ”€ api/                    # HTTP API layer
โ”œโ”€โ”€ docker/                 # Docker deployment configs
โ”œโ”€โ”€ scripts/                # Deployment & test scripts
โ””โ”€โ”€ docs/                   # Design documents

โš™๏ธ Configuration

๐ŸŸข Validator environment variables
Variable Default Description
VALIDATOR_ID validator-1 Unique validator identifier
VALIDATOR_HTTP_PORT 8080 HTTP API port
VALIDATOR_P2P_PORT 9000 P2P network port
VALIDATOR_DB_PATH (memory) RocksDB path for persistence
VALIDATOR_KEY_FILE โ€” Path to keypair file
๐ŸŸฆ Solver environment variables
Variable Default Description
SOLVER_ID solver-{uuid} Unique solver identifier
SOLVER_PORT 9001 Solver listen port
SOLVER_CAPACITY 100 Max concurrent tasks
VALIDATOR_ADDRESS 127.0.0.1 Validator address
AUTO_REGISTER true Auto-register on startup
๐ŸŸฃ Consensus configuration
Parameter Default Description
vlc_delta_threshold 10 VLC delta to trigger folding
min_events_per_cf 1 Minimum events per ConsensusFrame
max_events_per_cf 1000 Maximum events per ConsensusFrame
vote_timeout_ms 5000 Voting timeout in milliseconds

๐Ÿ”Œ API Reference

HTTP Endpoints

Method Endpoint Description
/health Health check
/api/v1/transfer Submit transfer between agents
/api/v1/balance/{address} Query balance for an address
/api/v1/object/{id} Query an object by ID
/api/v1/events List recent events
/api/v1/register/solver Register a new solver

RPC Services

  • ๐ŸŸข ConsensusService โ€” Event submission, CF proposal, voting
  • ๐ŸŸฆ SyncService โ€” Event/CF synchronization between validators
  • ๐ŸŸฃ DiscoveryService โ€” Peer discovery and management

Full API docs: docs/api.md


๐Ÿ“Š Performance

Metric Value Notes
โšก TPS DAG-BFT consensus
โฑ Latency End-to-end confirmation
๐Ÿ›ก Validators BFT consensus quorum
๐Ÿงฎ Solvers Horizontal scaling

Run Benchmarks Yourself

# Simple TPS test
python scripts/tps_test_simple.py

# Full benchmark
cargo bench --package setu-benchmark

๐Ÿ—บ Roadmap

๐ŸŸข Now v0.x

โœ… DAG-BFT consensus
โœ… VLC causal ordering
โœ… TEE execution (Nitro + Mock)
โœ… HTTP API + CLI
โœ… Multi-validator Docker
โœ… 200K+ TPS benchmark

๐ŸŸก Next Q3 2026

๐Ÿ”จ Subnet architecture
๐Ÿ”จ Python SDK
๐Ÿ”จ TypeScript SDK
๐Ÿ”จ LangChain integration
๐Ÿ”จ Public testnet launch

๐Ÿ”ต Later Q4 2026+

๐Ÿ“‹ MCP server integration
๐Ÿ“‹ Cross-chain bridges
๐Ÿ“‹ Reputation primitives
๐Ÿ“‹ Production mainnet
๐Ÿ“‹ ZK proof integration

Tip

๐Ÿ’ฌ Want to influence the roadmap? Open an issue or join our Discord.


๐Ÿค Community

Discord
Questions, help, dev chat
Twitter
Updates & announcements
Website
Full ecosystem site
Docs
Deep technical docs

Get Involved

Action How
โญ Star this repo If Setu solves a problem you have
๐Ÿ› Open an issue Bug reports, feature requests
๐Ÿ”ง Submit a PR See Contributing Guidelines โ€” start with good-first-issue
๐Ÿ’ฌ Join the discussion Discord โ€” we read every message
๐Ÿฆ Tweet about Setu Tag @Hetu_Protocol

๐Ÿ“ˆ Stargazers Over Time

Star History Chart

๐Ÿ‘ฅ Contributors

Contributors

Made with contrib.rocks


๐Ÿ“„ License

This project is licensed under the Apache License 2.0 โ€” see LICENSE for details.


๐Ÿ“– Citation

If Setu helps your research, please cite it:

@software{setu2026,
  title  = {Setu: A Causally-Driven Distributed Ledger for AI Agent Economies},
  author = {{Advaita Labs}},
  year   = {2026},
  url    = {https://github.com/AdvaitaLabs/Setu}
}

 โ”Œโ”€โ”โ”Œโ”€โ”โ”Œโ”ฌโ”โ”ฌ โ”ฌ
 โ””โ”€โ”โ”œโ”ค  โ”‚ โ”‚ โ”‚
 โ””โ”€โ”˜โ””โ”€โ”˜ โ”ด โ””โ”€โ”˜

Built for the AI-native economy by Advaita Labs



hetu.org ย ยทย  @Hetu_Protocol ย ยทย  Discord ย ยทย  Docs



โญ Star us on GitHub ย ยทย  ๐Ÿฆ Share on Twitter

About

Setu is a causally driven distributed ledger system designed for the AI-native economy. Different from traditional blockchains that generate blocks according to a physical clock, FoldGraph drives the ledger forward with a verifiable logical clock (VLC), and records the history only when actual intelligent work is generated

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages