Technical Report

PROM AI DePin

Hybrid Web3 infrastructure for autonomous AI-agent economics. Micropayments, identity, trust, and settlement anchored in the PROM blockchain.

Executive Summary

PROM AI DePin is a modular infrastructure platform designed for machine-to-machine economic interactions. It enables autonomous AI agents to register on-chain identities, transact via micropayments, verify task execution through a decentralized validator network, and settle payments — all anchored in the PROM zk-based Layer 2 blockchain.

The system consists of three independent microservices (Agent Layer, Verification Network, Payment Rail) connected via an HTTP-based A2A protocol with on-chain settlement through Solidity smart contracts. An orchestration repository assembles all services for unified local development and testing via Docker Compose.

4
Repositories
9
Smart Contracts
28
Forge Tests Passing
18
API Endpoints

System Architecture

Three microservices + on-chain smart contracts + shared infrastructure
Agent Layer Project A · :3001 Identity · Protocol Metering · Policy Verification Network Project B · :3002 Validators · Jobs Coordinator · Verdicts Payment Rail Project C · :3003 Escrow · Settlement Streaming · Receipts verify escrow / settle verdict PostgreSQL 3 databases · :5432 Anvil (Local EVM) Foundry · :8545 PROM Blockchain (Settlement & Security Layer) AgentRegistry · EscrowHub · VerdictRegistry · ValidatorRegistry · SlashingRewards on-chain
📦

Repositories

Four repositories on GitHub — three services + one orchestration

Agent Infrastructure Layer

Project A

SDK and runtime for AI agents with on-chain identity in PROM. Provides agent registration, service catalog, tariff management, usage metering with signed receipts, and the A2A request/response protocol.

NestJS MODULES
identity catalog pricing metering protocol policy health
SMART CONTRACTS
AgentRegistry.sol ServiceCatalog.sol TariffRegistry.sol
prom-io-develop/a2a-agent-layer

AI Trust & Verification Network

Project B

Decentralized verification layer for AI task results. Validators stake PROM, verify agent outputs, form consensus, and publish verdicts on-chain. Includes dispute resolution and reputation scoring.

NestJS MODULES
validators jobs coordinator verdicts disputes reputation policies health
SMART CONTRACTS
ValidatorRegistry.sol PolicyRegistry.sol VerdictRegistry.sol SlashingRewards.sol
prom-io-develop/a2a-verification-network

Micropayment & Settlement Rail

Project C

Financial infrastructure for AI-agent micropayments. Escrow-based sessions, streaming payments, batched settlement, and verdict-aware fund release — all anchored in PROM smart contracts.

NestJS MODULES
escrow settlement streaming verdicts receipts health
SMART CONTRACTS
EscrowHub.sol VerdictIntegration.sol
prom-io-develop/a2a-payment-rail

Infrastructure Compose

Orchestration

Internal orchestration repository that assembles all three services via git submodules. Provides Docker Compose configuration, database initialization, contract deployment scripts, and E2E testing.

INCLUDES
docker-compose.yml init-databases.sql deploy-contracts.sh e2e-test.sh git submodules
prom-io-develop/a2a-infra-compose

Transaction Lifecycle

Full AI-to-AI transaction flow across all three services

1. Agent Registration

AI agents register via POST /agents on the Agent Layer. Each agent receives an on-chain identity through AgentRegistry.registerAgent() on PROM, storing DID, public key, and endpoint.

2. Escrow Opening

The buyer agent opens an escrow session via POST /escrow on the Payment Rail. Funds are locked on-chain through EscrowHub.openEscrow() with budget limit, TTL, and verification requirements.

3. A2A Request & Response

Agent A sends a task to Agent B via POST /a2a/request. The payload is hashed (keccak256), usage is metered (tokens, bytes, CPU time), and a signed receipt is generated with the provider's wallet signature.

4. Verification

The verification job is submitted via POST /jobs. The Coordinator assigns validators (round-robin), they verify the result, and a verdict (ACCEPT/PARTIAL/REJECT) is posted on-chain via VerdictRegistry.postVerdict().

5. Batch Settlement

Accumulated receipts are settled via POST /settlements/batch. The Payment Rail calls EscrowHub.settleBatch() on-chain, transferring funds to the provider minus the protocol fee (0.5%).

6. Escrow Closure

The buyer closes the escrow via POST /escrow/:id/close. Remaining deposit is refunded on-chain through EscrowHub.closeEscrow(). Session is marked as completed.

🔗

Smart Contracts

Solidity ^0.8.24 · Foundry · 28 tests passing
Contract Service Key Functions Tests
AgentRegistry Agent Layer registerAgent, updateAgent, deactivateAgent, getAgent 4 pass
ServiceCatalog Agent Layer registerService, deactivateService 2 pass
TariffRegistry Agent Layer publishTariff 1 pass
ValidatorRegistry Verification register (payable), exit, slash 4 pass
PolicyRegistry Verification publishPolicy 2 pass
VerdictRegistry Verification postVerdict, getVerdict 3 pass
SlashingRewards Verification slash, distributeRewards 2 pass
EscrowHub Payment Rail openEscrow, settleBatch, claimStream, closeEscrow, freezeOnDispute 6 pass
VerdictIntegration Payment Rail checkVerdict, freezeOnDispute 4 pass
🛠

Technology Stack

Production-grade tooling across backend, blockchain, and infrastructure

Backend Framework

NestJS (TypeScript)

Smart Contracts

Solidity 0.8.24 + Foundry

Database

PostgreSQL 16 + TypeORM

Blockchain Client

ethers.js v6

API Documentation

Swagger / OpenAPI

Containers

Docker + Docker Compose

Local EVM

Foundry Anvil

Testing

Forge (28 tests) + Jest

Target Chain

PROM (Polygon CDK L2)

🖥

Service Map

Docker Compose network topology
Service Port Database Swagger
Agent Layer (Project A) :3001 agent_db /api
Verification Network (Project B) :3002 verification_db /api/docs
Payment Rail (Project C) :3003 payment_db /api
PostgreSQL :5432 3 databases auto-created via init script
Anvil (Local EVM) :8545 Block time: 2s, pre-funded accounts
🏢

Role of PROM

PROM is the root of economic security for the entire system

Settlement Layer

Final settlement of all payments between agents. Escrow deposits, batch settlements, and refunds are recorded on-chain.

Security Layer

Validators stake PROM tokens. Malicious behavior triggers slashing. Economic incentives enforce honest verification.

Identity Anchor

Agent DIDs, validator registrations, and verification policies are anchored on-chain for tamper-proof identity.

Dispute Resolution

Verdicts are published on-chain. Disputes trigger escalation, expanded validator sets, and binding on-chain resolution.