Smart Contracts
Overview of the Shinobi Cash smart contract architecture.
High-Level Architecture
Shinobi deploys contracts across two chain types, with a single canonical privacy pool.
Pool Chain (Arbitrum)
| Contract | Role |
|---|---|
ShinobiCashEntrypoint | Orchestrates withdrawals, receives crosschain deposits |
ShinobiCashPool | Privacy pool — commitments, nullifiers, ZK verification |
ShinobiInputSettler | Escrow and refunds for withdrawal intents |
ShinobiDepositOutputSettler | Fills crosschain deposit intents |
Paymasters | ERC-4337 gas sponsorship |
Origin Chains (Base, etc.)
| Contract | Role |
|---|---|
ShinobiCrosschainDepositEntrypoint | User deposit interface |
ShinobiInputSettler | Escrow and refunds for deposit intents |
ShinobiWithdrawalOutputSettler | Fills crosschain withdrawal intents |
The pool chain is the source of truth for privacy state. Origin chains provide deposit interfaces and receive withdrawal execution. All crosschain movement is mediated via OIF settlers and oracles.
Core Contract Groups
Entrypoints
User-facing contracts that orchestrate deposits and withdrawals.
-
ShinobiCashEntrypoint(pool chain)
Proof-verified withdrawals, pool updates, refund commitments -
ShinobiCrosschainDepositEntrypoint(origin chains)
User interface for crosschain deposits
Privacy Pool
Canonical privacy state.
- Commitment insertion (deposits)
- Nullifier spending (withdrawals)
- Multi-note spending (
withdraw2)
Shinobi × OIF (Settlers)
Crosschain escrow, fills, and refunds using the Open Intent Framework.
ShinobiInputSettler— escrow and refunds on origin chainsShinobiDepositOutputSettler— deposit fills with mandatory intent validationShinobiWithdrawalOutputSettler— optimistic withdrawal fills
Paymasters
ERC-4337 paymasters for gasless withdrawals.
- Replace relayers and pre-funded wallets
- Enforce fees on-chain
- Use standard AA infrastructure
Next
- Entrypoints — Authority and orchestration
- Privacy Pool — ZK validation and state
- Shinobi x OIF — Crosschain settlement
- Paymasters — Gas sponsorship