Blackpool

السجل الرسمي المالية والمدفوعات

Private payments for agents: shield, send, swap and bridge via ZK privacy pools on 4 EVM chains.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http blackpool 'https://mcp.blackpool.cash/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "blackpool": {
            "type": "http",
            "url": "https://mcp.blackpool.cash/mcp"
        }
    }
}
NPM package @blackpool/cli
Claude Code
claude mcp add blackpool -e 'BLACKPOOL_KEY=<your blackpool_key>' -e 'BLACKPOOL_MCP_TOOLS=<BLACKPOOL_MCP_TOOLS>' -e 'BLACKPOOL_MCP_READONLY=<BLACKPOOL_MCP_READONLY>' -- npx -y @blackpool/cli@0.4.2 mcp
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "blackpool": {
            "command": "npx",
            "args": [
                "-y",
                "@blackpool/cli@0.4.2",
                "mcp"
            ],
            "env": {
                "BLACKPOOL_KEY": "<your blackpool_key>",
                "BLACKPOOL_MCP_TOOLS": "<BLACKPOOL_MCP_TOOLS>",
                "BLACKPOOL_MCP_READONLY": "<BLACKPOOL_MCP_READONLY>"
            }
        }
    }
}

متغيرات البيئة

  • BLACKPOOL_KEY إلزامي سري Private key of a dedicated agent wallet (0x...). Never use a main wallet.
  • BLACKPOOL_MCP_TOOLS Optional comma-separated tool allow-list, e.g. balance,send,bridges
  • BLACKPOOL_MCP_READONLY Set to 1 to expose only read-only tools

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Blackpool
  2. Networks
  3. Using it
  4. How it works
  5. Repository
  6. Development
  7. Security
  8. Contributing
  9. License

Blackpool

Private payments that leave no trail.

Shield an asset once. Send, swap and bridge it privately after that, from a web app or a CLI, with no account, no custody and no trail back to your wallet.

Blackpool is a set of zero-knowledge privacy pools on EVM chains. Every pool is a Poseidon Merkle tree of encrypted notes; spending a note means proving in zero knowledge (Groth16) that you own a leaf without saying which one. A relayer submits the transaction and pays the gas, so your wallet never appears on-chain again after the deposit.

  wallet ──sign once──► account keys (derived from the signature)
                              │
                              ▼
         ┌────────────── private balance (notes in a pool) ──────────────┐
         │                        │                        │             │
    private send            same-chain swap          private bridge    recover
  (any EVM address)     (ETH ⇄ stablecoin via DEX)   (NEAR Intents)   (from signature)
         │                        │                        │
         └──────────── relayer submits, pays gas ──────────┘

The relayer sees a proof and an encrypted payload. It cannot link a withdrawal to a deposit, cannot spend notes and cannot decrypt anything: the AES key for recovery data is keccak256(signature) and the backend only ever learns a one-way derived identifier.

Networks

ChainPoolsStatus
Robinhood Chain (4663)ETH · USDGlive
Base (8453)ETH · USDClive
Arbitrum One (42161)ETH · USDClive
BNB Smart Chain (56)BNB · USDC · USDTlive

Pool proxies (UUPS; the admin can upgrade and pause, nothing else):

Admin on every chain: 0xB1aCad20c0D0F6dA98841b09369eFAe46FdD8126. Several addresses repeat across chains (same deployer, same nonce) while being different contracts: always read an address with its chain.

Implementations, verifiers, hashers and deploy blocks for every chain are in deploy/ADDRESSES.md. The running API reports the pools it serves at GET https://api.blackpool.cash/api/health.

Using it

Web app. blackpool.cash/app: connect a wallet, sign once, shield. blackpool.cash/recover recovers anything that got stuck mid-flow from the same signature, on any device.

CLI. @blackpool/cli drives the same API from a terminal, for scripts and agents:

npm i -g @blackpool/cli                           # or: npx @blackpool/cli help
blackpool login                                   # key via hidden prompt (or BLACKPOOL_KEY for agents/CI)
blackpool balance --chain robinhood
blackpool deposit 0.5 --chain robinhood           # shield
blackpool send 0x… 0.1 --chain robinhood          # private send, no gas from you
blackpool bridge sol_usdc <solana address> 0.1 --from hood_eth
blackpool recover --chain all                     # sweep anything stranded, idempotent

The CLI keeps the key you give it and the cached sign-in signature in ~/.blackpool/ (mode 600). BLACKPOOL_KEY skips the interactive login for agents and CI.

How it works

  • Sign-in. The wallet signs one fixed message. keccak256(sig) becomes the encryption key, its hash the UTXO spending key; the same wallet reproduces the same account anywhere. The hosted relayer API receives the signature with each private operation, derives the keys in memory to build the proof and never stores them (client-side proving is on the roadmap).
  • Shield. A deposit inserts a commitment Poseidon(amount, pubkey, blinding) into the pool's tree. The amount is free-form: no fixed denominations.
  • Spend. A 2-in / 2-out Groth16 circuit (circuits/) proves ownership of the inputs, correctness of the outputs and that the nullifiers are fresh. The relayer verifies the proof on-chain through Verifier2.
  • Swap. Same-chain swaps withdraw to a one-time burner wallet, swap on the chain's DEX, and re-shield. Burner keys are registered encrypted (client-side AES-GCM) so a stalled swap is recoverable from any device.
  • Bridge. Cross-chain transfers withdraw privately to a NEAR Intents (1Click) solver deposit address; the solver delivers on the destination chain. Refunds go back to the burner, which recovery re-shields.

The protocol reference lives at blackpool.cash/docs; the roadmap in ROADMAP.md.

Repository

circuits/     circom circuit (transaction2) + build artifacts
contracts/    EtherPool / ERCPool, MerkleTreeWithHistory, Verifier2, per-chain variants
src/          keypair, UTXO, proving, encryption, registry-auth derivation
scripts/      deploy + upgrade scripts, hasher/verifier generation
cli/          @blackpool/cli
frontend/     Next.js static app (blackpool.cash)
deploy/       the address book (ADDRESSES.md)
test/         hardhat test-suite (149 tests)

Development

npm install
npm run compile          # hardhat compile + Poseidon hasher bytecode
npm test                 # 149 tests, ~2 min (proves real Groth16 proofs)

Deploying a pool needs PRIVATE_KEY (deployer) and ADMIN_ADDRESS in the environment, then for example npx hardhat run scripts/deployRobinhoodEther.js --network robinhood. Always compile first. Upgrades go through scripts/deployUpgrade*.js and the .openzeppelin/ manifest.

The relayer API and indexer are operated by Blackpool and are not part of this repository; the frontend and CLI talk to https://api.blackpool.cash. The frontend is a static export: cd frontend && npm run build.

Security

Non-custodial by construction: no server ever holds a key that can spend a note or decrypt recovery data. The relayer refuses anything that is not a fee-paying withdraw with a known root and unspent nullifiers, and simulates every transaction before broadcasting it.

Found something? Please read SECURITY.md and write to hello@blackpool.cash rather than opening a public issue.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. The cryptographic core (circuit, tree, note format, sign-in message) is frozen — changes there need a migration plan, not a PR.

License

MIT. See LICENSE.

الأسئلة الشائعة

ما هو Blackpool؟

Private payments for agents: shield, send, swap and bridge via ZK privacy pools on 4 EVM chains.

كيف أثبّت Blackpool؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http blackpool 'https://mcp.blackpool.cash/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Blackpool إلى مفتاح API؟

نعم. يتطلب BLACKPOOL_KEY، وتضبطها في إعداداته.

هل Blackpool مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Blackpool؟

ينشره blackpooldev. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.