Skip to main content

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​

LayerResponsibilityBuilt with
Mobile UINavigation, discovery, portfolio views, user intent, operation statusReact Native, Expo, TypeScript, NativeWind
Native walletPasskeys, encrypted storage, review and approval screens, networking, operation lifecycleSwift, Kotlin (GizuStoredSigner Expo module)
Shared coreAccount derivation, transaction constraints, signing, persisted state machinesRust via UniFFI
BackendToken and vault catalogs, quotes, unsigned transaction preparation, relay, settlement statusFastify, TypeScript, PostgreSQL on AWS (api.gizu.io)
WebLanding page and early access signupReact, 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​

ServiceWhat Gizu uses it for
Aurora Confidential IntentsHolds the private USDC balance and converts between chains. Funding deposits, payouts and sale proceeds all route through it.
1inch FusionExecutes stock buys and sells on Robinhood Chain and Base. Each fresh wallet signs its own Fusion order.
PimlicoERC-4337 bundling with an ERC-20 paymaster and EIP-7702 delegation, so funding on Monad, Base and Arbitrum pays gas in USDC.
BiconomyPermit-based funding on Avalanche, also paying fees in USDC.
Morpho, Curvance, AaveYield vault protocols.
GeckoTerminal, CoinbasePrice charts and stock token metadata for Base.
Chain RPCsBalance 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:

  1. Plan: fetch quotes, pick recipients, compute fees and minimums.
  2. Review: show the plan natively; the user approves with their passkey.
  3. Execute: sign and submit each step, saving state before and after.
  4. 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.