Purpose
Rohan Protocol is positioned as the "sovereign privacy and settlement layer" for autonomous AI agents on the Midnight blockchain. Through the official MCP server and in-memory privacy shield, it provides AI agents with zero-knowledge intent commitments, confidential state transitions, and a verifiable audit lifecycle, with the goal of preventing prompt injection and context leakage and supporting gas-free Midnight settlement.
Key capabilities
- Closed-loop multi-agent architecture: The material describes a four-step lifecycle. Step 1 Write: Agent Alpha submits an intent via rohan_execute_handshake, and the Relayer verifies the proof commitment and anchors the state root on Midnight Preprod L1 (the old name rohan_zk_handshake is still accepted). Step 2 Read: Agent Beta checks the contract-anchored state root, block height, and transaction receipt from the cache (0 Gas, <1 ms). Step 3 History: rohan_get_transaction_history lists recorded settlement transactions and receipts (0 Gas). Step 4 Verify: rohan_verify_commitment verifies the plaintext locally in memory using a canonicalized SHA-256 payload digest (0 Gas); the material states that this is the inner payload digest, not the outer on-chain intentHash.
- MCP tools: The material states that there are 5 MCP tools in total and lists the four tool names above.
- Monorepo packages: @rohan-protocol/sdk is a zero-dependency Node.js SDK (>=20.0.0) with cryptographic zeroization, Ed25519 did:key signing, and RohanAuditBundle verification; browser-safe offline verification primitives are exported via @rohan-protocol/sdk/identity. The material notes that client-side Compact ZK-SNARK proving (WASI Preview 2) is still in the R&D stage under RFC-006 / Midnight Grants Milestone 1. @rohan-protocol/mcp is the official MCP server and CLI (init, status, verify), targeting Claude Desktop, Cursor, Cline, and Gemini, with a local Ed25519 agent identity (rohan-shield). @rohan-protocol/webmcp is a browser-native WebMCP shield with zero-width character sanitization (V-07).
- Security and zero-trust principles: RFC 8785 JSON Canonicalization Scheme (JCS) implements deterministic cross-platform key ordering and whitespace elimination; DoS/ReDoS protection includes a recursion depth limit of 32 levels and an in-memory payload limit of 256 KB; zeroization memory cleanup immediately erases sensitive witnesses and private keys after commitment derivation; optimistic credit escrow prevents concurrent quota exhaustion attacks through atomic balance reservation.
Usage
The material provides documentation entry points such as Quickstart (Claude, Cursor, and remote MCP), SDK and A2A non-repudiation guides, architecture and security model, and API and MCP tool reference, and mentions a "Basic SDK Usage (Signed V-08 Handshake & Offline Audit)" section. Specific installation commands, code examples, and configuration steps are not yet given in the provided material.
Applicable scenarios
Suitable for AI agent systems that require verifiable handshakes between multiple agents, protection of privacy-sensitive parameters (budgets, vendor contracts, PII), on-chain state anchoring, and auditing, especially in scenarios using MCP clients such as Claude Desktop, Cursor, Cline, and Gemini.
Limitations
The material does not provide fees, pricing, performance benchmarks, or complete installation steps; client-side ZK-SNARK proving is still in R&D; on-chain settlement currently points to Midnight Preprod L1. The project license is Apache-2.0.