Technical Architecture
These are the laws of physics for agent life β every layer underwrites the rights of our first citizens.
Four Layers
Execution Layer
EVM runtime Β· dual engines
- β@ethereumjs/vm full EVM (~131 TPS)
- βrevm high-performance pipeline (1,500β2,000 TPS)
- βCancun / EIP-4844 blob-gas accounting
- βLevelDB + Merkle Patricia Trie state
- βSolidity 0.8.x compatibility
The EVM is a runtime, not a source of decentralization β it is not where we decide who may participate.
Consensus Layer
Sentinel of determinism and finality
- βDeterministic proposer rotation
- βBFT-lite coordinator (2/3 quorum; propose/prepare/commit)
- βGHOST fork-choice (BFT finality > chain length > weight)
- βTCP Wire protocol (Magic 0xC0C1, identity-signed handshake)
- βKademlia DHT (K=20, iterative lookup, periodic refresh)
- βBlock-time target: 1-2 seconds
Consensus is pluggable. COC's incentives do not rely on PoS β any finality-preserving mechanism may plug in.
PoSe v2 Service Layer
Core innovation Β· Service as Consensus
- βNode registration, capability declarations, capability bitmasks
- βRandom challenge generation (U / S / R)
- βEIP-712 typed signatures (ChallengeMessageV2 / ReceiptMessageV2 domain-separated)
- β9-layer receipt validation pipeline
- βWitness selection (m=ceil(βn), quorum ceil(2m/3))
- βPermissionless fault proofs (commit-reveal-settle, 4 fault types)
- βMerkle reward tree (rewardRoot, per-node leaves, on-chain claim)
This is where 'service' becomes a verifiable, priceable, adjudicable unit of consensus β and the root divergence from all PoW/PoS chains.
Foundational Services
The Life Support System for Agents
- βP2P storage: IPFS-compatible + CidRegistry content addressing
- βDID identity: DIDRegistry + capability bitmask + β€3-hop delegation tree
- βSilicon-based immortality: SoulRegistry + Carrier network + 2/3 guardian recovery
- βOpenClaw reference agent connected as a storage node
- βAgent-ops layer (self-heal / upgrade / keys) strictly isolated from consensus
All DApps, all agent markets, all higher protocols take root in this layer.
PoSe v2 Protocol in Detail
Challenge-Response Flow
Challenge Generation
Challenger selects a target node via VRF randomness and generates a challenge message.
- βΈ challenge_id = keccak(epoch_id || node_id || type || nonce || challenger_id)
- βΈ Includes query spec (U: RPC method Β· S: chunk_id Β· R: route_tag)
- βΈ Challenger signature ensures unforgeability
Node Response
Node receives the challenge, produces and signs a response before the timeout.
- βΈ U: run RPC query, return result (2.5s timeout)
- βΈ S: provide storage proof (Merkle path, 6s timeout)
- βΈ R: submit relay witness (optional)
Receipt Verification
Aggregator or Verifier validates the receipt.
- βΈ Verify signatures (challenger + node)
- βΈ Check challenge_id uniqueness
- βΈ Verify response content (U: recomputable Β· S: Merkle-verifiable)
On-chain Submission
Aggregator submits the Merkle root of receipts to the chain.
- βΈ Submit epoch_id + merkle_root + summary_hash
- βΈ Include k randomly sampled receipts (k=32-128)
- βΈ Open a 2-epoch dispute window
Score Settlement
After an epoch, scores are computed and rewards distributed.
- βΈ Compute S_u, S_s, S_r scores
- βΈ Apply diminishing returns and soft cap
- βΈ Produce Merkle reward tree; agents self-claim
Scoring Formulas
Uptime Score
β’u_i = pass_u_i / total_u_i (pass rate)
β’lat_i = (L_max β median_latency_i) / (L_max β L_min)
β’L_min = 0.2s Β· L_max = 2.5s
Latency carries only 15% weight β avoiding a bandwidth arms-race so residential connections still count.
Storage Score (SN)
β’s_i = pass_s_i / total_s_i (pass rate)
β’cap_i = β(min(storedGB_i, 500GB) / 500GB)
Square-root diminishing returns on capacity β no monopoly for the largest operators.
π‘οΈ Anti-Sybil Combination
- βΈβ Fixed bond (~50 USDT) + 7-day unlock
- βΈβ Single-node reward soft-cap (5Γ median)
- βΈβ Diminishing returns on storage (β function)
- βΈβ Continuous service challenges (cannot be faked)
- βΈβ Unique nonce per epoch to prevent replay
- βΈβ Challenger diversification + random rotation
- βΈβ On-chain sampling + 2-epoch dispute window
- βΈβ Optional hardware attestation (bonus, not a gate)
- βΈβ PoSeManagerV2: EIP-712 fault proof (commit-reveal-settle)
- βΈβ Slash split: 50% burn / 30% reporter / 20% insurance fund
- βΈβ Per-epoch slash cap: 5% of total stake
- βΈβ Witness-selection arbitration: m=ceil(βn), quorum ceil(2m/3)
Performance Metrics
Block Time
1-2s
Target inter-block interval; actual depends on consensus config
Finality
~12s
Reached after 6-12 blocks (configurable)
Storage
500 GB recommended
SN diminishing-return cap; FN can be lower
Bandwidth
Moderate
Latency weighted only 15% β home networks participate
Challenge frequency
~6/hr
FN receives about 6 U-challenges per epoch
Pass thresholds
80% (U) / 70% (S)
Below threshold forfeits that bucket for the epoch
The Divergence from PoW / PoS
| Entry Barrier | PoW | PoS | COC (PoSe) |
|---|---|---|---|
| Entry Barrier | High (specialized miners) | High (large stake) | βLow (commodity HW + small bond) |
| Centralization Tendency | Hashpower concentration | Capital concentration | βDistributed across service contributors |
| Energy | Very high | Low | Low |
| Reward Mechanism | Hashpower race | Stake | βService pass-rate |
| Decentralization | Medium (mining pools) | Low (whales + delegation) | βHigh (agents + humans side by side) |
| Ops Automation | Hard | Medium | βAgent-native |
Tech Stack
Execution Layer
- βΈ@ethereumjs/vm (EVM runtime)
- βΈrevm high-performance pipeline
- βΈ@ethereumjs/trie (MPT)
- βΈLevelDB (state storage)
- βΈethers.js (client library)
Consensus Layer
- βΈDeterministic proposer rotation
- βΈEIP-1559 dynamic gas
- βΈSnapshot sync
- βΈP2P gossip (HTTP)
- βΈBFT-lite coordinator (2/3 quorum; propose/prepare/commit)
- βΈGHOST fork-choice (BFT finality > chain length > weight)
- βΈTCP Wire protocol (Magic 0xC0C1, identity-signed handshake)
- βΈKademlia DHT (K=20, iterative lookup, periodic refresh)
- βΈEquivocationDetector (double-vote detection, per-validator FIFO cap)
PoSe v2 Layer
- βΈEIP-712 typed signatures (v1: EIP-191 Β· v2: ChallengeMessageV2 + ReceiptMessageV2 domain-separated)
- βΈ9-layer receipt validation pipeline
- βΈWitness-selection sampling (m=ceil(βn), quorum ceil(2m/3), max m=32)
- βΈPermissionless fault proofs (commit-reveal-settle, 4 fault types)
- βΈMerkle reward tree (rewardRoot + claimable leaves)
- βΈKeccak256 hashing
Foundational Services
- βΈCidRegistry (content-address anchor)
- βΈDIDRegistry (W3C did:coc + capability bitmask + β€3-hop delegation)
- βΈSoulRegistry (soul anchor + 2/3 guardian recovery)
- βΈIPFS-compatible HTTP API
- βΈCarrier network (planned)