Only the cryptographic proof travels — ready for a counterpart agent to verify in milliseconds.

With Rohan Shield, your company data never leaves your machine

yet your agents can prove budgets, credentials, and compliance to any counterpart.

❯ npm i @rohan-protocol/sdk@0.8.3
or 30s MCP setup npx -y --package @rohan-protocol/mcp@0.8.3 rohan-shield init
0 Bytes
Disk Footprint

100% In-RAM Execution + Zeroize

256 Bit
Intent Commitment

Tamper-proof RFC 8785 SHA-256 anchors

0 Gas Cost
Subsidized Paymaster

Zero developer friction on Midnight

100% Midnight
L1 On-Chain Settlement

Preprod Contract: 585ac0c...

W3C did:key
Sovereign Identity

Ed25519 9-Field RFC 8785 Envelopes

Universal Multi-Agent Architecture

The 4-Stage Closed-Loop Multi-Agent Lifecycle.

Rohan Protocol eliminates the classic dead-end MCP tool problem by establishing a complete, multi-turn state loop between coordinating autonomous agents on the configured Midnight network. In Local Stdio MCP, a separate status tool supports identity checks and connectivity diagnostics across every stage.

Execute
State Mutation
rohan_execute_handshake
Alias: rohan_zk_handshake
Actor: Agent Alpha (Initiator)

Agent Alpha initiates a confidential Zero-Knowledge state transition on the configured Midnight network with optional signed V1 envelopes. Sensitive business data (budgets, contracts, PII) are canonicalized and hashed in local RAM via RFC 8785 JCS. Only the cryptographic intent commitment hash is anchored via the Relayer.

// 1. Client SDK Settlement (v0.8.3)
const receipt = await client.submitHandshake({
intent: "Vendor Agreement #409", // MCP: actionSummary
confidentialPayload: deal
});
const audit = await verifyAuditBundle(receipt.auditBundle!, deal);
// Anchored TxHash: receipt.txHash · audit.valid === true
Paymaster: 100% Subsidized (0 Gas)
Latency: Network-dependent
Security: Zero Plaintext Exposure
Inspect
State Inspection
rohan_get_ledger_state
Current Contract State
Actor: Agent Beta (Observer)

Agent Beta fetches the latest contract state through the configured relayer. The response includes the state root and block height, plus cache metadata when available; this read-only network request is subject to relayer and network latency.

// 2. State Inspection (Read-only)
const state = await client.getLedgerState();
console.log(state.currentStateRoot);
console.log(state.blockHeight);
if (state.cacheAgeMs != null) console.log('Cache age:', state.cacheAgeMs);
Transaction: Read-only
Latency: Network-dependent
Guarantee: Anchored contract state
History
Audit Trail
rohan_get_transaction_history
Chronological Proof Listing
Actor: Agent Beta / Auditor

Lists prior transactions with their state roots, intent commitments, block heights, and timestamps. This read-only request returns up to 50 entries through the configured relayer.

// 3. Historical Transaction Listing
const history = await client.getTransactionHistory(50);
history.transactions.forEach(tx => {
console.log(tx.blockHeight, tx.intentHash);
});
Transaction: Read-only
Latency: Network-dependent
Capacity: Paginated up to 50 items
Verify
Agreement Audit
rohan_verify_commitment
Cryptographic Verification
Actor: Agent Beta (Counterparty)

Agent Beta re-canonicalizes the plaintext in local memory using RFC 8785 JCS and compares its SHA-256 digest with the receipt's inner payloadDigest. This check does not use the outer intentHash and requires no network request. Use MCP audit-bundle mode when signature and intent binding also need verification.

// 4. Local Cryptographic Audit (RFC 8785)
if (!receipt.payloadDigest) throw new Error("Missing payload digest");
const audit = await client.verifyCommitment(
{ budgetUsd: 150000, authCode: "AUTH-99" },
receipt.payloadDigest
);
// audit.valid === true
Network: Local memory; no network call
Transaction: None
Verification: SHA-256 digest comparison

Status & Diagnostics

Local Stdio · Tool 5 of 5
rohan_get_agent_status

In Local Stdio MCP, check the active DID, signing mode, configured network, and relayer health before retrying an error. It returns a degraded status when the relayer is unreachable and never exposes private keys. This is a diagnostic utility, not a fifth lifecycle stage.

{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "rohan_get_agent_status",
    "arguments": {}
  }
}
Enterprise Developer Integration

Developer Quickstart

Integrate the official Model Context Protocol (MCP) server into Claude Desktop, Cursor, and TypeScript agents in seconds.

5 MCP Tools
Transparent SaaS DX • 100% Gas Sponsored by Rohan Paymaster

Predictable Pricing for Autonomous Agents.

No crypto price volatility. You pay a fixed monthly SaaS rate via Stripe. We sponsor 100% of Midnight L1 gas fees ($tDUST) through our automated paymaster.

Free Sandbox Tier: 10 Handshakes / Day • Rate Limit: 1 Req / 10s
No Key Required Built-in SDK Default
Developer Staging
$0
Instant free key via email
500 Handshakes / Month
Rate Limit: 1 Req / sec
Full RAM Zeroize (V-02)
Standard Pool
Pro Agent Most Popular
$49 / month
Direct Stripe Checkout
25,000 Handshakes / Month
Shared High-Speed Pool
Overage: $2.50 / 1k Tx
Claude Desktop & Cursor Ready
Scale 99.9% SLA
$199 / month
Multi-Agent Swarms
125,000 Handshakes / Month
Priority Mempool Acceleration
Overage: $1.80 / 1k Tx
Dedicated Webhook Channels
ENTERPRISE RELAYER TIERS • From $999 / mo

Need 500,000+ handshakes or custom settlement circuits?

Includes dedicated high-throughput Relayer nodes, custom Compact smart contract circuits, corporate invoicing (wire / ACH), and guaranteed 99.99% uptime SLA.

Preprint · Zenodo • Open access · 2026

Rohan: A Stateless Zero-Knowledge Trust Gateway for Privacy-Preserving Agentic Workflows via Streamable HTTP

A technical paper on privacy-preserving agent workflows, client-side proofs, and Streamable HTTP.

Read the preprint