Gero Wallet
A multi-chain, non-custodial wallet browser extension (Chrome Manifest V3) for Cardano, Bitcoin, Midnight, and Apex Fusion.
Overview
Gero Wallet is a feature-rich, non-custodial multi-chain wallet browser extension. It supports Cardano, Bitcoin, Midnight, and Apex Fusion (Prime and Vector), and ships two interfaces: a full dashboard and Mini-Gero, a compact side-panel wallet.
Cardano data and DeFi routing primarily use Nexus, through the Gero backend. Bitcoin also uses Esplora directly, and the SPO client calls Koios. Midnight data uses Nexus/Gero Sync, while proof generation can use direct Foundation/Arkhia services. See architecture for these boundaries. Feature availability depends on chain and feature flags.
The development package is 2.8.0; that version is not evidence of a published
release. The Vue 3 migration is merged. See maintenance for
current checks and remaining release work.
Two interfaces
Gero ships two surfaces over the same wallet core:
- Full dashboard — the complete extension: portfolio, swaps, perpetuals, staking, governance, dApp connections, rewards, and settings.
- Mini-Gero — a compact wallet in the browser side panel, for working without leaving the page you're on. It covers the common flows: balances, send, receive, swap, buy and sell, staking and DRep delegation, market prices, perpetuals, vaults, activity, and dApp approvals.
Mini-Gero is a focused subset of the dashboard. Anything not in the side panel is available in the full interface.
Key Features
💼 Wallet Management
- Create and import wallets with BIP39 mnemonic phrases
- Hardware wallet support (Ledger, Trezor, Keystone)
- PassKey (WebAuthn PRF) wallets with hardware-backed key encryption
- Multiple wallets; broader account-index support is tracked in #1307
- Versioned authenticated encryption for stored software-wallet secrets
⛓️ Multi-Chain Support
- Cardano — staking, CIP-1694 governance, native assets, NFTs, dApp connector
- Midnight — shielded transfers, NIGHT/DUST management, proof server, and a shielded proving consent flow
- Apex Fusion — Prime and Vector chains
- Bitcoin — wallet and transaction flows behind the Bitcoin feature flag
⛓️ Cardano Native Features
- Staking: delegate to stake pools and earn rewards
- Governance: CIP-1694 DRep voting and delegation
- NFTs: view, manage, and trade Cardano NFTs
- Native Tokens: full support for Cardano native assets
- CIP-113 programmable tokens: shown in the portfolio and badged; Stage 1 is display only, transfers of these tokens are not supported yet
🔄 DeFi and Trading
- DEX aggregation for best swap rates (routed via Nexus)
- Token swaps across multiple Cardano DEXs
- Perpetuals trading via Strike Finance: order book, market and limit orders, TWAP orders, positions and order history
- Vaults via Strike Finance: view vault data; transfers remain unavailable pending #1292
- Portfolio tracking, analytics, and real-time price feeds
- Fiat on-ramp via MoonPay
🎁 Rewards
- Cashback via the Bring portal (on supported networks)
🔐 Security First
- Non-custodial (you control your keys)
- Configurable lock methods: password, PIN, or pattern
- Two-factor authentication
- Auto-lock with configurable timeout
- Transaction risk assessment
- DApp connection approval system
- Hardware wallet integration
🌐 Web3 Connectivity
- CIP-30 dApp connector API (
window.cardano) - WalletConnect session support
- Real-time blockchain updates via Gero Sync (WebSocket push)
Tech Stack
- Frontend: Vue.js 3.5 + TypeScript + Vuetify 4.2 (Material Design)
- Build System: Vite 7.3 with 4 separate configurations
- State Management: Custom Vue reactive stores (lightweight, performant)
- Database: Dexie (see the lockfile for the installed version) (IndexedDB wrapper with versioned schemas)
- Cardano SDK:
@cardano-sdk/core(see the lockfile) (modern, preferred for new features) - Data Layer: Nexus (Gero backend) for blockchain data, prices, and DeFi routing
- Real-time: Gero Sync — WebSocket push for instant blockchain updates
- Cryptography: Local WASM from chain SDK dependencies, plus versioned secret encryption
- Hardware Wallets: Native support for Ledger, Trezor, and Keystone
For complete technical details, see ARCHITECTURE.md.
Quick Start
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 24.19+ (24.x) and npm 11.1.0, matching CI (Download)
- A configured Gero backend for live data; optional for offline checks
- Chrome or any Chromium-based browser (Edge, Brave, etc.)
- Git for version control
1. Clone and Install
# Clone the repository
git clone https://github.com/Gero-Labs/gerowallet.git
cd gerowallet
git switch development
# Match the CI package manager
npm install --global npm@11.1.0
# Install dependencies
npm ci
# Create .env.development in your editor using the settings below.
2. Configure Environment
For local development, create .env.development with these backend settings.
They allow the base application to boot; live integrations and feature flags
may need additional public configuration. Never put backend secrets in
VITE_* variables, which are exposed to the client:
# Gero backend base URL (localhost for development)
VITE_BACKEND_URL=http://localhost:8081
# Nexus is reached through the backend proxy (server injects the Nexus key).
# Point this at <gero-backend>/api/nexus, NOT at Nexus directly.
VITE_NEXUS_URL=http://localhost:8081/api/nexus
# Gero Sync WebSocket (real-time blockchain updates, served by the backend)
VITE_SYNC_WS_URL=ws://localhost:8081/sync
An unavailable backend leaves data-driven views empty or failing even when
the UI loads. Configure the services needed for your scenario. To list the
VITE_* names referenced by source and build scripts:
rg -o --no-filename 'VITE_[A-Z0-9_]+' src scripts
CIP-113 programmable-token display is behind two build-time gates, both of which must
pass. Both live in
src/utils/cip113Deployments.ts: the
CIP113_ALLOWED_NETWORKS allowlist, and the per-network programmable_logic_base script
hashes, which are reviewed protocol constants (an empty list disables the feature for that
network). Mainnet, preprod and preview are all allowlisted and configured, so CIP-113 is
live on all three.
3. Connect a backend
Use the team's maintained backend deployment or its current setup instructions
to run a local instance. Its server-side configuration is maintained separately
from this extension. Check http://localhost:8081/health for the local example
above. Do not assume an old Docker tag is compatible with current services.
Offline tests and the synthetic isolated build in MAINTENANCE.md do not need backend credentials. They do not establish live data behavior.
4. Start Development
# Start development server (hot reload)
npm run dev
This starts development servers for all contexts:
- Background service worker
- Content scripts (DApp connector)
- Inject scripts (window.cardano API)
- Web UI (options/dashboard and sidepanel; approvals use options routes)
5. Load Extension in Chrome
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked"
- Select the
extension/folder from the project directory - The extension should now appear - pin it to your toolbar
That's it! You now have Gero Wallet running locally. 🎉
Development
Development Commands
# Development with hot reload
npm run dev # All contexts (recommended)
npm run dev:web # Web UI only (faster for UI work)
npm run dev:background # Background script only
npm run dev:content # Content scripts only
npm run dev:inject # Inject scripts only
Build and Package
Use the release procedure for candidate packaging: sequential builds, secret-reader/remote-code/TDZ checks, expected channel identity, and retained artifact hashes. For an offline source check, use the isolated-build instructions in MAINTENANCE.md.
# Production build
npm run build # Optimized production build
npm run build:beta # Beta build with beta environment
# Package extension
# Legacy developer packaging utilities (not release qualification)
npm run pack:zip # Local development ZIP
npm run pack:zip:beta # Local beta ZIP
# Utilities
npm run clear # Clean build artifacts
npm run typecheck # TypeScript type checking
npm run lint # ESLint checks
# Do not run a repository-wide automatic lint fix.
Testing
Run automated checks before manual testing:
npm test -- --maxWorkers=2
npm run design:check
npx eslint <changed-code-files>
npm run typecheck
Global lint and Vue-aware type checking have tracked historical diagnostics. Compare the maintenance baseline; fix new diagnostics and all lint in touched code files. CONTRIBUTING.md explains required CI checks and targeted tests. A passing unit suite is separate from physical-device, live-provider, and profile-upgrade acceptance.
Use the Preprod testnet for safe testing:
- Load the extension and create a test wallet
- Go to Settings → Network → Preprod
- Get free test ADA from Cardano Faucet
Never test with real funds on mainnet during development!
Project Structure
gerowallet/
├── src/
│ ├── chrome/ # Extension-specific code
│ │ ├── background.ts # Service worker (main background script)
│ │ ├── messaging.ts # Chrome messaging system
│ │ └── walletBg.ts # Wallet operations in background
│ ├── modules/ # Feature modules (Vue components)
│ │ ├── dashboard/ # Portfolio, assets, quick actions
│ │ ├── staking/ # Cardano staking and delegation
│ │ ├── governance/ # Governance and DRep voting
│ │ ├── swap/ # DeFi token swaps
│ │ ├── transactions/ # Transaction history
│ │ └── ... # Other feature modules
│ ├── stores/ # Vue reactive state management
│ │ ├── geroStore.ts # Global app state
│ │ ├── walletStore.ts # Active wallet state
│ │ └── ... # Feature-specific stores
│ ├── services/ # Business logic services
│ │ ├── walletManager.service.ts # Wallet lifecycle
│ │ ├── sync.service.ts # Blockchain sync
│ │ └── websocket.service.ts # Gero Sync real-time updates
│ ├── db/ # Database layer (Dexie/IndexedDB)
│ │ ├── gero-db.ts # Application-level DB
│ │ └── wallet-db.ts # Wallet-specific DBs
│ ├── api/ # Backend/data integrations
│ │ ├── nexus-tx-api.ts # Nexus transaction building
│ │ ├── market-api.ts # Prices & market data (via backend)
│ │ └── ... # Other backend-routed clients
│ ├── shared/ # Reusable utilities and components
│ │ ├── utils/ # Helper functions
│ │ ├── composables/ # Vue composables
│ │ └── components/ # Shared Vue components
│ └── options/ # Extension UI entry points
├── ARCHITECTURE.md # System architecture overview
├── CONTRIBUTING.md # Contribution guidelines
└── README.md # This file
For detailed architecture overview, see ARCHITECTURE.md.
Architecture Highlights
Chrome Extension (Manifest V3)
Gero Wallet uses a multi-context architecture for security and performance:
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Approval │ │ Options │ │ Side Panel │
│ (Web UI) │ │ (Web UI) │ │ (Web UI) │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
└────────────────┼────────────────┘
│
┌─────────▼─────────┐
│ Chrome Messaging │
└─────────┬─────────┘
│
┌──────────────▼──────────────┐
│ Background Service Worker │
│ - Wallet Operations │
│ - Transaction Signing │
│ - State Broadcasting │
└──────────┬──────────────────┘
│
┌──────────┼──────────┐
│ │
┌────▼────┐ ┌─────▼──────┐
│IndexedDB│ │Chrome │
│(Dexie) │ │Storage │
└─────────┘ └────────────┘
Why this architecture?
- Security: Software signing is centered in the worker; PassKey decryption and hardware communication also use trusted extension documents. See the signing boundaries in ARCHITECTURE.md.
- Performance: Non-blocking operations, efficient state synchronization
- Reliability: Database persistence with real-time state sync
Key Architectural Patterns
-
Two-Tier Database System
- Application-level DB: Global data (wallets list, config)
- Wallet-specific DBs: Individual wallet data (transactions, addresses)
-
Real-Time Communication
- Gero Sync WebSocket push for instant blockchain updates
- Mutex-protected sync to prevent race conditions
-
Modern Cardano SDK
- Uses
@cardano-sdk/corealongside backend transaction construction - Conway-era support (latest Cardano protocol features)
- Uses
-
Hardware Wallet Integration
- Hybrid approach: Background prepares, Frontend handles device communication
- Supports WebUSB (Ledger), WebBLE, and QR codes (Keystone)
For complete architectural details, see ARCHITECTURE.md.
Documentation
For Contributors
- Quick Start - Local setup and development environment
- Architecture Overview - System design, patterns, data flow
- Maintenance - Current debt, ownership, checks, and dependency policy
- Contributing Guidelines - How to contribute, code standards, PR process
- Contributor Skill - Working guide to the codebase: build loop, execution contexts, state, design ratchet, i18n, chains, signing, and which checks actually gate a merge
For Developers
- Tech Stack: Vue.js 3.5, TypeScript, Vite, Dexie, Cardano SDK
- Key Patterns: Vue reactive stores, Chrome messaging, two-tier database
- Data Layer: Nexus/Gero backend plus chain-specific providers; see ARCHITECTURE.md.
Development Resources
- Cardano Developer Docs
- Cardano SDK Documentation
- Chrome Extension Developer Guide
- Vue.js 3 Guide
- Vuetify 4 Components
Contributing
We welcome contributions from the community! Gero Wallet is a financial application handling real cryptocurrency, so we prioritize security and quality.
Before You Start
- Read the Contributing Guidelines
- Review the Architecture Overview
- Set up your development environment using the Quick Start
Contribution Workflow
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/gerowallet.git - Create a branch:
git checkout -b feature/your-feature-name - Make changes following our coding standards
- Test thoroughly (use Preprod network for transactions)
- Commit:
git commit -m "feat: add your feature description" - Push:
git push origin feature/your-feature-name - Open a Pull Request with a clear description
Development Principles
- Security First: Never log sensitive data (keys, mnemonics, passwords)
- Test Thoroughly: Use Preprod testnet, test edge cases
- Follow Patterns: Match existing code style and architecture
- Performance Matters: Profile critical operations, optimize for speed
- Documentation: Comment complex logic, update docs for API changes
Good First Issues
Check our GitHub Issues for issues labeled good first issue - these are great starting points for new contributors.
Browser Support
- ✅ Chrome/Chromium (Manifest V3) - Primary platform
- ✅ Edge (Chromium-based)
- ✅ Brave (Chromium-based)
- ❌ Firefox (not supported)
- ❌ Safari (not currently supported)
Security
Gero Wallet takes security seriously. This is a non-custodial wallet handling real cryptocurrency.
Security Features
Key protection
- Stored secrets: Password-secret writers select the supported raw-key,
gpw1, or purpose-boundgpw2format according to the field and feature flag. Legacy readers remain for compatibility; PRF wallets use a separate path. - Signing boundaries: password-wallet signing runs in the worker; PRF wallets decrypt in trusted UI, and hardware wallets use document-side device communication.
- Hardware wallet support: Ledger, Trezor, and Keystone
- PassKey (WebAuthn PRF) wallets: key encryption bound to platform authenticator hardware, with no spending password
Access control
- Configurable lock methods: password, PIN, or pattern
- Two-factor authentication
- Auto-lock: configurable inactivity timeout
- Separate recovery password: independent of the spending password
Transaction and dApp safety
- Transaction risk assessment: inline risk checks before signing
- dApp security: connection approval system and domain whitelisting
- Shielded proving consent: explicit approval before Midnight proving operations
Reporting Security Issues
If you discover a security vulnerability, please DO NOT open a public issue. Instead:
- Open a private report via GitHub: Report a vulnerability
- Provide detailed information about the vulnerability (with keys/mnemonics/passwords redacted)
- Allow time for the team to patch before public disclosure
See SECURITY.md for the full policy, scope, and safe-harbor terms.
