Why MpcFirewall Exists

Give autonomous AI agents cross-chain spending power on Ethereum, Base, and Bitcoin without risking an empty wallet from prompt injection or blind signing.

The Blind-Signing Problem

NEAR Chain Signatures lets an AI agent control wallets on Base, Ethereum, Arbitrum, and Bitcoin through a single NEAR account (v1.signer). That creates a critical blind spot: NEAR Function Call Keys can check which NEAR contract an agent calls, but v1.signer.sign only sees a scrambled 32-byte hash.

Think of it like asking a security guard to approve a locked metal briefcase by looking at its serial number. If a prompt injection tricks your AI agent into slipping an unlimited token drain or attacker payout inside an Ethereum transaction before hashing it, standard MPC signers cannot see inside and sign it blindly.

How MpcFirewall Solves It

MpcFirewall flips the order of operations: your AI agent never sends a pre-hashed digest to v1.signer. Instead, it submits the raw unsigned transaction bytes to the mpc-firewall.testnet smart contract, which unpacks the bytes on-chain, enforces your spending rules, computes the hash itself, and only then asks MPC to sign.

Without MpcFirewall

Agent builds transaction → Hashes it off-chain → Sends 32 blind bytes to v1.signer → Wallet drained if compromised.

With MpcFirewall

Agent sends raw unsigned bytes → Contract X-rays recipients, methods & caps → Optionally audits intent in NEAR AI TEE → Hashes & signs only if safe.

Three Clear Outcomes

Every transaction your agent proposes routes automatically into one of three predictable lanes:

1. Auto-Sign

Safe routine payments (e.g., ≤ 100 USDC to a whitelisted vendor) are signed automatically in seconds with no human bottleneck.

2. Team Vote

Legitimate larger bills (e.g., 250 USDC) pause safely and create a SputnikDAO proposal so your human team can approve or reject.

3. Blocked (\$0 Signed)

Blank-check approvals, sneaky nested calls, unapproved scripts, or intent lies are rejected on the spot before any signature exists.

Start Integrating