Rohan Shield
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ROHAN_RELAYER_URL | Yes | The URL of the Rohan relayer handshake endpoint | |
| ROHAN_CONTRACT_ADDRESS | No | Midnight Preprod Contract Address |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Rohan Protocol provides gas-free confidential commitments and Ed25519 (W3C did:key) non-repudiation on Midnight Network (Ledger v9).
CORE RULES FOR AGENTS:
PRIVACY BOUNDARY: Always place sensitive parameters (budgets, prices, counterparties, PII, contract terms) inside
confidentialPayload. KeepactionSummarygeneric and non-sensitive (e.g., "Vendor Procurement Authorization").PRIVATE KEYS: Never ask the user for private keys or pass private keys in tool arguments. Local stdio identity is managed automatically (~/.rohan/agent-identity.json or ROHAN_AGENT_PRIVATE_KEY). Do not invent an
agentIdwhen a local signer is active.IDENTITY & STATUS: To check your active
did:key, network, or relayer health, readrohan://identityor callrohan_get_agent_status.AUDIT VERIFICATION:
rohan_verify_commitmentchecks plaintext against the innerpayloadDigest(RFC 8785 JCS + SHA-256, referenced inactionSummaryorauditBundle.payloadDigest), NOT the outer timestamp-saltedintentHash. You can also pass an entireauditBundleto verify signature and binding offline.DRY RUN: Use
dryRun: trueonly when the user explicitly asks to preview, test, or inspect a commitment without settling on-chain. The default isfalse; dry runs create no transaction and notxHash.ERROR RECOVERY:
REPLAY_DETECTED(409): Do NOT retry the same payload/nonce. Callrohan_get_transaction_historyto inspect existing settlements.STALE_TIMESTAMP(401): Retry with a fresh tool invocation.INVALID_SIGNATURE(401): Callrohan_get_agent_statusto verify the active identity and relayer status before retrying.IDENTITY_MISMATCH(403): OmitagentIdso the active signer's DID is used automatically.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rohan_execute_handshakeA | Executes or locally previews a confidential handshake commitment on Midnight. Usage guidelines:
|
| rohan_get_ledger_stateA | Reads the current anchored Rohan Protocol contract state on Midnight. Usage guidelines:
|
| rohan_get_transaction_historyA | Lists historical Rohan Protocol settlement transactions and receipts on Midnight. Usage guidelines:
|
| rohan_verify_commitmentA | Cryptographically audits a plaintext payload and/or a portable RohanAuditBundle offline in local memory (0 gas). Usage guidelines:
|
| rohan_get_agent_statusA | Returns the active Sovereign Agent identity (W3C did:key), signing mode, configured network, and relayer reachability (gracefully degrades if offline). Usage guidelines:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Rohan Sovereign Agent Identity | Read-only metadata describing the active Ed25519 W3C did:key identity, signing mode, keystore path, and Midnight contract context. |
TDQS
Scored across 5 tools
Each tool has a clearly distinct role: execute settlement, read ledger state, list transaction history, inspect agent identity/health, and verify commitments offline. The descriptions explicitly cross-reference the other tools to redirect common misuses, leaving little overlap.
All tools use a consistent rohan_ prefix followed by a snake_case verb_noun pattern (execute_handshake, get_ledger_state, get_transaction_history, get_agent_status, verify_commitment). The convention is predictable throughout.
Five tools is well-scoped for this domain: one write operation, three reads/diagnostics, and one offline verification tool. Each tool earns its place without obvious redundancy.
The surface covers the core settlement lifecycle: execution, state read, history, identity/health, and cryptographic verification. Minor gaps exist, such as querying a specific commitment by ID or cancelling a pending settlement, but agents can work around them via history and state reads.