← Back to selected work Independent project · Mobile, native modules & backend · iOS & Android

Nadir Wallet .

Self-custody, without the risk.

A self-custody crypto wallet for practising on test networks: your keys stay on your phone, every send is checked before it leaves, and no real money is involved.

Nadir Wallet is an end-to-end mobile engineering project combining on-device cryptography, custom Swift and Kotlin camera frame-processor modules, a typed Hono + Drizzle backend, and 401 automated tests across a pnpm and Turborepo monorepo. It operates exclusively on test networks with simulated sends and sample portfolio data.

401 Automated tests

40 Vitest suites across wallet logic, security flows, and shared packages + Android E2E suite

Swift · Kotlin Custom Nitro modules

Hand-written VisionCamera 5 frame processors over Google ML Kit for face liveness & QR scanning

BIP39 · PBKDF2 On-device custody

Hardware keychain storage, salted PBKDF2 passcode lockout, and OS biometric gating

0.88 / 58 RN & Expo monorepo

React Native 0.88, React 19, Expo SDK 58, Hono API, and shared Turborepo packages

01 / Product walkthrough

See it in motion.

80-second captioned walkthrough with sound: wallet creation & recovery phrase verification, interactive portfolio chart, multi-network QR receive sheet, pre-send address risk check & transaction simulation, Face ID confirmation, Security Center, and dark/light themes.

02 / Product & interface tour

Every flow, end to end.

Key user flows, states, and interface details across the application.

01

A complete product, not a screen mock-up

Creating or importing a BIP39 wallet, verifying backups, passcode and biometric locking, sending with pre-flight simulation, receiving across 5 testnets, and searching activity all work end to end.

02

Real native camera engineering in Swift & Kotlin

Both the QR scanner and the face liveness check are custom VisionCamera 5 frame-processor plugins built with Nitro Modules over Google ML Kit — not off-the-shelf wrapper libraries.

03

Defense-in-depth security model

Recovery phrases never leave expo-secure-store, sensitive reveals fail closed behind OS biometrics, app passcodes use salted PBKDF2 hashes with persistent escalating lockout, and reported recipients are blocked before signing.

04

Verified in CI and on physical hardware

401 unit and integration tests run on every push alongside strict typechecking and architectural boundary lint rules, complemented by an Android release E2E suite verified on a Pixel 9.

Welcome screen with options to create a new self-custody testnet wallet or import an existing recovery phrase
01 / On-device onboarding

Generate a new wallet or import a 12/24-word BIP39 recovery phrase that never leaves the device keychain.

Portfolio home screen showing total balance, interactive price chart, time range selectors, and testnet token holdings
02 / Interactive portfolio

Scrub the balance history chart across six time ranges and inspect individual testnet token positions.

Send review screen showing recipient address, network fee, a passed low-risk check, and a passed transaction simulation
03 / Pre-send risk & simulation

Every transfer runs an address risk evaluation and pre-flight simulation before biometric confirmation; reported addresses are blocked.

Security Center displaying a 3/4 security score, recovery phrase backup status, identity check, biometric unlock, and auto-lock controls
04 / Security Center

Tracks phrase backup verification, Face ID unlock, auto-lock timers, transaction protection, and on-device face liveness.

Receive sheet displaying an Ethereum Sepolia payment QR code and selector chips for five test networks
05 / Multi-network receive QR

Switch across five EVM test networks (Ethereum Sepolia, Base, Arbitrum, OP, Polygon Amoy) with instant QR generation.

Portfolio home screen rendered in the light theme with synchronized status bar and navigation chrome
06 / Dark by default, light on request

Full semantic theme support that flips charts, surfaces, system status bars, and native keyboard appearance together.

03 / Under the hood

Engineered like production.

Architectural choices, state boundaries, and verification strategy for technical reviewers.

01 / Keys never leave the device & fail-closed biometrics

BIP39 recovery phrases are generated or imported locally and stored in the platform keychain. The backend API only ever receives public addresses, network IDs, and unsigned transaction drafts. Revealing the phrase requires OS biometrics and fails closed; app passcodes are stored as salted PBKDF2 hashes with an escalating lockout.

Read Security Model on GitHub

02 / Custom Swift & Kotlin Nitro plugins on the camera frame thread

Two dedicated monorepo packages (@nadir-wallet/face-liveness and @nadir-wallet/code-scanner) bridge Google ML Kit Face Detection and Barcode Scanning directly into VisionCamera 5 frame processors via Nitro Modules, combined with a pure state-machine reducer for randomized blink/turn/nod/smile liveness challenges.

Explore Nitro Plugins on GitHub

03 / Enforced monorepo layering & shared pure domain packages

Cryptography helpers (crypto-core), risk scoring, transaction simulation, and portfolio math (wallet-core) live in pure TypeScript packages shared by the mobile app and Hono API. Custom ESLint rules forbid shared layers from importing features, providers, or routes.

Read Architecture Notes on GitHub

04 / Apple Silicon simulator & Android R8 native build hardening

A custom Expo config plugin patches ML Kit pods so iOS Simulator builds link cleanly on Apple Silicon Macs, while custom ProGuard/R8 keep rules preserve Nitro and VisionCamera classes in production Android release APKs.

Read Expo SDK 58 Verification Notes
Technical stack

Core layers & tooling

Application
React Native 0.88, React 19, Expo SDK 58, TypeScript (strict)
Routing
Expo Router with statically typed routes and modal sheets
Native Camera Modules
Two VisionCamera 5 frame-processor plugins (Nitro Modules in Swift & Kotlin) over Google ML Kit
Cryptography & Storage
viem, @scure/bip39, @noble/hashes (PBKDF2); secrets isolated in expo-secure-store
Backend API
Hono on Node.js, libsql with Drizzle ORM, and Zod request/response validation
Monorepo & Shared Core
pnpm workspaces + Turborepo sharing @nadir-wallet/types, crypto-core, and wallet-core
Quality & Verification
Vitest (40 suites, 401 tests), Android E2E runner, ESLint boundary rules, Prettier, GitHub Actions
Data & state pipeline

From screen to data & services

  1. 01
    Expo Router Screens & Feature Hooks

    Typed routes in apps/mobile/src/app/ delegating to feature-owned screens, state machines, and hooks

  2. 02
    App, Theme & Wallet Providers

    Coordinated lock state, currency preferences, demo fault-injection controls, and portfolio state

  3. 03
    Device Security & Camera Services

    Hardware keychain (expo-secure-store), OS biometrics, and VisionCamera 5 frame-processor pipeline

  4. 04
    Custom Nitro Native Modules (Swift & Kotlin)

    On-device ML Kit face liveness challenge evaluation and real-time QR payment address extraction

  5. 05
    Hono API & Shared Core Packages

    Drizzle + libsql backend validating address risk and simulating transactions with @nadir-wallet/wallet-core

Repository structure

Feature-owned codebase layout

apps/mobile/
React Native app (Expo Router, feature folders, providers)
apps/api/
Hono API server with libsql, Drizzle ORM, and seed data
packages/types/
Shared Zod schemas, request/response contracts, and domain types
packages/crypto-core/
EVM address validation, BIP39 phrase utilities, and PBKDF2 passcode hashing
packages/wallet-core/
Recipient risk scoring, pre-send simulation, and portfolio calculations
packages/face-liveness/
Custom Swift & Kotlin Nitro frame-processor plugin for ML Kit face liveness
packages/code-scanner/
Custom Swift & Kotlin Nitro frame-processor plugin for ML Kit QR scanning
docs/
Security model, architecture boundaries, API reference, and Pixel 9 verification
Run it locally

Zero-credential local setup

No external accounts or RPC keys are needed — the Hono API serves deterministic sample data and the mobile app also includes an offline bundled demo fallback.

pnpm install
pnpm dev:api
pnpm --filter @nadir-wallet/mobile ios
pnpm test