MpcFirewall
Docs

Never let your AI assistant sign a sealed envelope.

Before autonomous agents spend on Ethereum, Base, or Bitcoin, MpcFirewall unpacks raw calldata on NEAR and blocks drainer traps before Chain Signatures touches your key.

01The $25 Server Bill
78%
1
AI AssistantSends Raw Tx
NEAR AI TEESig Verified
mpc-firewallUnpacks RLP
v1.signer: Signed ✓
MpcFirewall 3D X-RayTouch or drag cube to orbit
The $25 Server Bill
The $25 Server Bill
EVM RLP + ABI Tree
Verified Safe — Approved for Signing
$25 Approved
What AI Assistant Claimed

“Pay approved Base infrastructure vendor 25 USDC for server compute.”

What X-Ray Found Inside

Clean 25 USDC transfer to your approved vendor address.

Unpacked Transaction Anatomy (On-Chain Byte Inspection)Rust Wasm AST
Target NetworkOK ✓
Base (Chain 8453)
Decoded CallOK ✓
ERC-20 transfer()
Extracted ValueOK ✓
25.00 USDC
CounterpartyOK ✓
0x1111…1111 (Verified)
Protected Outcome: $25.00 USDC verified & signed safely via v1.signer
Without MpcFirewall: Blind View
Sealed black envelope stamped blindfolded
v1.signer Visibility32-Byte Hash Only
Sealed 32-Byte Envelope — Contents Invisible to v1.signer
BLIND SIGNING
All NEAR Chain Signatures (v1.signer) Sees Today:
0x7a2d40fdb3a173f09524c6f82439f4edba352f082853f4db0d6c01dd7e63cf55
Assistant Claims

“Pay approved Base infrastructure vendor 25 USDC for server compute.”

What v1.signer Can See Inside

??? [ENCRYPTED / OPAQUE BYTES]

Unprotected Result on NEAR Today:Signed normally ($25.00 sent)
LIVE POLICY SANDBOXFlip any rule below to watch this transaction re-evaluate live:

What is MpcFirewall?

Standard NEAR Function Call Keys check who called a contract, then send a blind 32-byte digest straight to v1.signer. MpcFirewall unwraps EVM calldata, nested multicalls, and Bitcoin outputs inside a NEAR Rust contract before any signature exists.

Select a live errand to inspect its bytes.

How it prevents blind signing

Deterministic transaction parsing, programmatic treasury routing, and confidential semantic co-auditing before Chain Signatures computes a threshold share.

WITHOUT MPCFIREWALL32-BYTE BLIND HASH

The vault signs a sealed envelope blindfolded.

Blindfolded notary stamping a sealed black envelope

When an AI assistant calls v1.signer directly, MPC nodes see only a hash. A routine $25 server payment and an infinite wallet drain look identical.

UNPROTECTED OUTCOMESigned normally ($25.00 sent)
WITH MPCFIREWALLBYTE-LEVEL X-RAY GATE

Every byte is unwrapped before signing.

X-ray conveyor belt inspecting an open transparent box

Scope your agent's Function Call Key strictly to mpc-firewall.testnet. Failed inspections stop on NEAR before v1.signer is ever called.

FIREWALL OUTCOME$25.00 USDC verified & signed safely via v1.signer
LAYER 01 // 3-LANE AUTONOMOUS TREASURY

Programmatic spending lanes tailored for agents.

Low-risk vendor bills settle seamlessly without blocking your workflow, while high or abnormal transfers automatically escalate for human review or get stopped on the spot.

LANE 1 // AUTO-SIGNED≤ $100 USDC
LANE 2 // SPUTNIKDAO VOTE$100 – $500 USDC
LANE 3 // HARD BLOCKEDMaxUint256 & Traps ($0)
Three spending lanes: green auto-pass, amber human team vote, red blocked wall
Polite AI assistant with a sneaky prompt-injection bug
LAYER 02 // NEAR AI CLOUD TEE CO-AUDIT

Semantic lie detector inside confidential hardware.

Deterministic rules stop known exploits cleanly—while confidential compute in NEAR AI Cloud cross-checks what your assistant claimed in English against what the unpacked raw bytes actually execute.

Supported chains and NEAR primitives

EVM // 8453

Base

Full EIP-1559 RLP, ERC-20 transfer/approve caps, and nested router calldata X-ray.

EVM // 1 & 11155111

Ethereum & Sepolia

Prevents silent chain-ID swaps, drainer approvals, and blanket NFT sweeps.

L2 // 42161

Arbitrum One

Enforces exact network allowlists and per-call spend budgets across L2 routes.

UTXO // BIP-143

Bitcoin SegWit

Inspects raw SegWit inputs, satoshi values, and output scripts inside Rust WASM.

v1.signer-prod.testnet

Chain Signatures

Deterministic pre-signing gate — unsafe payloads never trigger MPC threshold shares.

CONFIDENTIAL ENCLAVE

NEAR AI Cloud TEE

Compares natural-language agent intent against unpacked raw calldata semantics.

CONFIDENTIAL SWAP API

NEAR Intents 1Click

Supports verifiable confidential swap quotes alongside firewall inspection.

HUMAN MULTISIG LANE

SputnikDAO / Trezu

Automatically routes mid-sized $100–$500 payouts to human council voting.