EasyDeFi
A non-custodial DeFi wallet and portfolio app I am building for my company. A hexagonal Go backend with 40 documented API paths and wallet sign-in, and a SwiftUI client with its own design system. In development.
- Role
- Founder and engineer (Go and iOS)
- When
- 2026 to present
- Stack
- Go (Gin, sqlx) · PostgreSQL · Redis · Python FastAPI · SwiftUI
- Status
- In development · not live yet
A wallet that never holds your keys
EasyDeFi is a DeFi wallet and portfolio app that I am building for my company. It brings self-custody wallets and centralized exchange accounts into one view, shows how a portfolio drifts from its target, and helps a user rebalance, with an AI-assisted flow for choosing a risk profile.
I am building both sides: a Go backend and a SwiftUI iOS client. It is still in development and not live yet.
The one rule that shapes everything: the server never holds keys. The app prepares a transaction, the user signs it on their own device, and only the signed result goes back.
Go, in ports and adapters
The backend is Go with Gin, sqlx, PostgreSQL and Redis, laid out as a hexagonal architecture: a pure domain core, ports as interfaces, use cases that orchestrate, and adapters at the edges. The domain does not import a web framework or a database driver. That is the idea Alistair Cockburn described as ports and adapters, and Robert C. Martin later folded into Clean Architecture.
In practice it means every outside service (balances, pool data, prices, exchange data) sits behind an interface. Each one has a real adapter and a deterministic fake. The development server runs the whole API on in-memory fakes, with a seeded demo user, so the iOS app can be built against real responses without any infrastructure running.
- 40 documented API paths in an embedded OpenAPI 3 spec with Swagger UI.
- Wallet sign-in with SIWE and SIWS (Sign-In with Ethereum and with Solana), verifying secp256k1 and ed25519 signatures.
- An execution-order state machine: pending, quoted, building, awaiting signature, submitted, confirmed, with failed and expired as exits. Order creation is idempotent through a client request ID.
- A Python FastAPI sidecar for read-only centralized exchange data, called from Go through its own adapter.
- Race-clean tests across the domain, use cases, crypto and full router integration, plus Prometheus metrics and tracing middleware.
SwiftUI with a coordinator per tab
The iOS app is SwiftUI with one coordinator per tab driving its own navigation stack. Views never touch the navigation path directly. Detail screens and multi-step flows open as full-screen layers with their own nested coordinator, so they sit above the tab bar instead of fighting with it.
View models are @MainActor @Observable classes, and a multi-step flow shares one model across its steps. There is a full design system (buttons, an interactive chart, chips, sheets, spacing and color tokens) and complete screens for the wallet, portfolio, transaction history, settings, adding a wallet, and the AI Assist journey from questionnaire to risk profile to rebalancing plan.
What I chose, and what it costs
Non-custodial by design
The server builds an unsigned transaction and the user signs on their own device. There are no user keys on our side to lose.
Every trade needs a round trip through the user's wallet, which is slower than a custodial app that signs for you.
Fakes for every outside service
The app and the tests run without keys, databases or network. New providers drop in behind the same interface.
Twice the adapters to keep in sync, and fakes can drift from the real services if nobody checks.
A Python sidecar instead of rewriting exchange libraries in Go
Mature exchange connectors without reimplementing them.
A second language and a second process to deploy and monitor.