Architecture
Gizu splits the app into layers so that wallet authority never reaches the JavaScript UI or the backend. Keys, signing and approval live in native code and a shared Rust core. Everything else only ever sees public data.
┌───────────────────────────────────────────────────────────────┐
│ Mobile UI React Native · Expo · TypeScript │
│ screens, catalogs, portfolio, intent ("buy 100 USDC of X") │
└───────────────┬───────────────────────────────────────────────┘
│ public metadata and status only
┌───────────────▼───────────────────────────────────────────────┐
│ Native wallet Swift (iOS) · Kotlin (Android) │
│ passkey ceremonies, secure storage, review screens, │
│ networking, operation lifecycle and journals │
├───────────────────────────────────────────────────────────────┤
│ Shared core Rust, exposed through UniFFI │
│ key derivation, transaction policy, signing, │
│ swap / earn / withdrawal state machines │
└───────────────┬───────────────────────────────────────────────┘
│ unsigned plans, quotes, relay, status
┌───────────────▼───────────────────────────────────────────────┐
│ Backend Fastify · TypeScript · PostgreSQL (AWS) │
│ catalogs, provider credentials, unsigned preparation, │
│ request validation, relay, settlement status │
└───────────────┬───────────────────────────────────────────────┘
│
Aurora Confidential Intents · 1inch Fusion · Pimlico ·
Biconomy · chain RPCs · GeckoTerminal
Layers
| Layer | Responsibility | Built with |
|---|---|---|
| Mobile UI | Navigation, discovery, portfolio views, user intent, operation status | React Native, Expo, TypeScript, NativeWind |
| Native wallet | Passkeys, encrypted storage, review and approval screens, networking, operation lifecycle | Swift, Kotlin (GizuStoredSigner Expo module) |
| Shared core | Account derivation, transaction constraints, signing, persisted state machines | Rust via UniFFI |
| Backend | Token and vault catalogs, quotes, unsigned transaction preparation, relay, settlement status | Fastify, TypeScript, PostgreSQL on AWS (api.gizu.io) |
| Web | Landing page and early access signup | React, TypeScript, Vite |
What crosses each boundary
- UI → native: an intent, such as "buy this token for this budget". The UI receives proposals, public metadata and status. It never sees secrets or raw signed bytes.
- Native → backend: requests for catalogs, quotes and unsigned transaction plans, and signed payloads to relay. The backend holds provider API keys; it never holds user keys and never signs for users.
- Native → chain: independent reads to verify balances, receipts and settlement. A backend status alone is never treated as proof that funds arrived.
External services
| Service | What Gizu uses it for |
|---|---|
| Aurora Confidential Intents | Holds the private USDC balance and converts between chains. Funding deposits, payouts and sale proceeds all route through it. |
| 1inch Fusion | Executes stock buys and sells on Robinhood Chain and Base. Each fresh wallet signs its own Fusion order. |
| Pimlico | ERC-4337 bundling with an ERC-20 paymaster and EIP-7702 delegation, so funding on Monad, Base and Arbitrum pays gas in USDC. |
| Biconomy | Permit-based funding on Avalanche, also paying fees in USDC. |
| Morpho, Curvance, Aave | Yield vault protocols. |
| GeckoTerminal, Coinbase | Price charts and stock token metadata for Base. |
| Chain RPCs | Balance reads and receipt verification on every supported chain. |
Operations are state machines
A buy, sale, vault deposit or withdrawal isn't one transaction. It's a sequence of requests, waits, reviews, approvals and settlement checks across several chains. The Rust core models each operation as a persisted state machine:
- Plan: fetch quotes, pick recipients, compute fees and minimums.
- Review: show the plan natively; the user approves with their passkey.
- Execute: sign and submit each step, saving state before and after.
- Verify: confirm each step from chain and provider observations before moving on.
Plans are immutable once approved: recipients, weights and limits don't change on retry. If the app is interrupted, the native layer reconciles saved state with what actually happened onchain and continues. See Transaction flows.
Capability gating
iOS and Android share the Rust core but not every native feature. Each build reports which operations it supports, and the backend reports which networks are enabled. The app only offers an action when both sides support it end to end.