F
Fold
Privacy-Preserving DeFi Security Agent
An autonomous agent that monitors your DeFi positions 24/7 using encrypted computation — detecting threats and executing protective actions without ever seeing your data.
Arcium MPC Solana Colosseum Hackathon 2026
THE PROBLEM
DeFi Security Has a Privacy Paradox
💸
$3.8B+
Lost to DeFi exploits, rug pulls, and liquidations in 2025 alone. Users can't monitor positions 24/7.
👁
100%
of current monitoring tools (DeBank, Zapper, bots) require full portfolio visibility. To protect your money, you must expose it.
🎯
Honeypot
Monitoring services that see large portfolios become attack targets. Your security tool becomes your vulnerability.
To protect your money, you have to show it to someone. Until now.
THE SOLUTION
The Agent That
Can't See Your Data

Fold uses Arcium's Multi-Party Computation network on Solana to monitor your DeFi positions without ever accessing the plaintext data.

Your positions stay encrypted end-to-end. Multiple MPC nodes compute risk scores cooperatively — no single node, and not even Fold itself, can see your portfolio.

1
Encrypt Position Data
x25519 ECDH key exchange with MPC network
2
Submit to Arcium MPC
Encrypted ciphertext sent on-chain to MPC nodes
3
Compute Risk Privately
MPC nodes evaluate health without decrypting
4
Act on Results
Agent receives boolean risk signal, triggers alerts or emergency actions
ENCRYPTION FLOW
How Fold Protects Your Data
🔒
User Wallet
Derives x25519 keypair from signature
ENCRYPT
🔐
RescueCipher
Shared secret via ECDH + MXE pubkey
CIPHERTEXT
Solana Program
Queues computation to Arcium MXE
MPC COMPUTE
🖧
MPC Network
Nodes compute risk without seeing data
RESULT
Risk Alert
Boolean: safe or at-risk (no data leaked)
LIVE AGENT
Fold Agent — Devnet Deployment
fold-agent — devnet
[00:01] Fold DeFi Security Agent v1.0
[00:01] Connecting to Solana devnet...
[00:02] Program: ABDZr..QbJC
[00:02] Deriving encryption keys from wallet signature...
[00:03] x25519 keypair derived
[00:03] Fetching MXE public key...
[00:04] ECDH shared secret computed
[00:04] RescueCipher initialized
[00:05] Monitoring position #1: $5,000 at 115% collateral
[00:05] Encrypting position data... [3 fields, 48 bytes ciphertext]
[00:06] Submitting encrypted health check to Arcium MPC...
[00:06] tx: 4xR7k...signed and confirmed
[00:12] MPC computation processing... (2 nodes)
[00:18] Health check callback received
[00:19] Revealing risk status...
[00:25] ⚠ RISK DETECTED Position #1 at risk (115% < 120% threshold)
[00:25] Sending Telegram alert...
[00:26] Alert sent. Evaluating emergency actions...
[00:26] ---
✓ All data encrypted end-to-end. Zero plaintext exposure.
ARCHITECTURE
Three-Layer Privacy Stack
🔐

Arcis MPC Circuits

Rust DSL circuits compiled for Arcium's MPC network. Computes risk scores on encrypted data.

init_risk_state | check_health | reveal_risk

Anchor Program

On-chain Solana program managing computation lifecycle, callbacks, and encrypted state.

Program ID: ABDZr3Dv...QbJC
🤖

Agent Service

TypeScript monitoring loop with encryption, event listeners, and alert dispatch.

monitor.ts | alerts.ts | actions.ts
🔑

x25519 + RescueCipher

ECDH key exchange with MPC network. Deterministic key derivation from wallet signature.

getSharedSecret() → RescueCipher.encrypt()
📊

Pyth + Helius

Real-time oracle price feeds and webhook-based event monitoring for instant reactions.

Pyth oracles | Helius webhooks
🛡

Emergency Actions

Pre-authorized protective actions: collateral top-up, position unwinding via Jupiter swaps.

Jupiter swap | Telegram alert
BUILT ON SOLANA + ARCIUM
Deployed on Devnet. Ready to Protect.
3
MPC Circuits Deployed
8
On-chain Instructions
0
Bytes of Plaintext Exposed
24/7
Autonomous Monitoring
The agent that protects your money can't see it.
github.com/ikeacrisp/fold-defi-agent
1 / 7
Space / Arrow keys to navigate • A = auto-play