Skip to content

Latest commit

 

History

232 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sozu Wallet

Self-custodial Stellar USDC wallet β€” passkeys, Pay, Deposit. Closed beta at app.sozu.capital.

Staging: dev.sozu.capital Β· Production (closed beta): app.sozu.capital
Pipeline: one GitHub repo, one Vercel project β€” see docs/vercel-consolidation.md.


Product note

The live demo shell is USDC Pay + Deposit with passkey auth. Broader credit / DeFi / vouching work remains in the codebase and roadmaps under docs/; first-run UX should match the wallet demo.

Quick Start

For Users

  1. Open app.sozu.capital
  2. Create / sign in with a passkey
  3. Deposit or claim testnet faucet USDC
  4. Pay from Home

For Developers

# Clone repository
git clone https://github.com/blessedux/sozu-wallet.git
cd sozu-wallet

# Install dependencies
pnpm install

# Create environment file (see Local development)
cp .env.example .env.local

# Run development server
pnpm dev

Deploy / Staging / Production cutover: docs/vercel-consolidation.md.
See Local Development for detailed setup instructions.


πŸ’‘ Core Features

1. Passkeys Authentication

  • πŸ”’ Zero passwords β€” sign in with biometrics (fingerprint, face ID, or hardware key)
  • ⚑ Instant access β€” no email verification, no SMS codes
  • πŸ›‘οΈ More secure than traditional passwords
  • 🌍 Works on all devices (mobile, desktop, hardware keys)

2. Stellar Smart Wallets

  • πŸ’Ό Automatic wallet creation per user via Turnkey SDK
  • πŸ” Secure key management - private keys managed by Turnkey
  • πŸ’΅ USDC on Stellar network
  • πŸ“Š Real-time balance tracking via Stellar Horizon API
  • πŸ”„ Seamless deposits and withdrawals
  • 🌐 Testnet and mainnet support

3. High-Yield DeFi Vaults

  • 🏦 Automatic 10-20% APY on USDC
  • πŸ”„ Auto-deposit incoming funds to yield vaults
  • πŸ“ˆ Real-time yield tracking
  • πŸ’Έ Easy withdrawals anytime

4. Trust Points & Vouching

  • πŸ… Earn trust points through community vouching
  • 🀝 Vouch for other users to build reputation
  • πŸ“Š Trust score determines credit eligibility
  • 🎁 Bonus points for daily activities and referrals

5. Education Portal

  • πŸ“š Financial literacy courses
  • πŸŽ“ Complete modules to unlock credit
  • πŸ“ˆ Learn DeFi and blockchain basics
  • πŸ† Achieve certifications for better rates

6. Decentralized Credit

  • πŸ’³ Access microloans based on community vouching
  • 🎯 No traditional credit checks
  • ⚑ Fast approval and disbursement
  • πŸ“Š Transparent terms and rates

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         Frontend (Next.js PWA)      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Passkeys Auth (WebAuthn)    β”‚  β”‚
β”‚  β”‚  Stellar Wallet UI           β”‚  β”‚
β”‚  β”‚  DeFi Vault Dashboard        β”‚  β”‚
β”‚  β”‚  Trust Points & Vouching     β”‚  β”‚
β”‚  β”‚  Education Portal            β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      API Layer (Next.js Edge)        β”‚
β”‚  β€’ Wallet Management                β”‚
β”‚  β€’ Vault Operations                 β”‚
β”‚  β€’ Trust Points API                 β”‚
β”‚  β€’ Education Progress               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      Stellar Blockchain              β”‚
β”‚  β€’ Smart Wallets                     β”‚
β”‚  β€’ USDC Asset Management            β”‚
β”‚  β€’ DeFi Vault Integration           β”‚
β”‚  β€’ Transaction Settlement           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Tech Stack

Frontend

  • Next.js 14+ (App Router)
  • React + TypeScript
  • Tailwind CSS
  • WebAuthn/Passkeys
  • PWA support (offline-first)

Backend

  • Next.js API Routes (Edge Runtime)
  • Supabase (PostgreSQL + Auth)
  • Stellar SDK
  • DeFi Protocol SDKs (Blend/Stellar AMM)

Blockchain

  • Stellar Network
  • Soroban Smart Contracts (future)
  • USDC on Stellar

πŸ“± User Flow

New User Journey

  1. Sign Up β†’ Tap fingerprint/face ID β†’ Wallet created instantly
  2. Get Invite Link β†’ Share with others β†’ Receive trust points
  3. Receive USDC β†’ Funds auto-deposit to yield vault β†’ Earn 10-20% APY
  4. Complete Education β†’ Learn DeFi basics β†’ Unlock credit eligibility
  5. Get Vouched β†’ Build trust score β†’ Access credit pools
  6. Request Credit β†’ Community vouching determines terms β†’ Receive funds

Existing User Flow

  • View balance (wallet + vault combined)
  • Track yield earnings in real-time
  • Vouch for other users
  • Send/receive USDC instantly
  • Manage credit and repayments

πŸ” Security & Privacy

  • Passkeys Only β€” No passwords stored, biometric authentication only
  • Encrypted Keys β€” Stellar wallet keys encrypted at rest
  • Self-Custody β€” Users control their funds
  • Zero-Knowledge UX β€” Minimal data collection, maximum privacy
  • Community-Based β€” No KYC required for vouching-based credit

πŸŽ“ Education System

Complete courses to unlock credit opportunities:

  • βœ… Introduction to Micro-Credit β€” Basics of decentralized lending
  • βœ… Financial Responsibility β€” Loan repayment and planning
  • βœ… Business Planning β€” Create solid business plans
  • βœ… Community & Trust β€” Understanding the vouching system
  • βœ… Managing Your Funds β€” Best practices for DeFi funds

Progress = Credit Eligibility β€” Complete all courses to unlock full credit limits.


🀝 Community Vouching

How It Works

  1. Earn Trust Points β€” Start with 5 points, earn more through:

    • Daily bonuses
    • Inviting new users
    • Receiving vouches from others
  2. Vouch for Others β€” Give trust points to users you believe in

    • Each vouch increases their trust score
    • Your vouches build your reputation
  3. Unlock Credit β€” Higher trust scores = better credit terms

    • Community vouching replaces traditional credit checks
    • Transparent trust graph visible to all

Invite System

  • Share Your Invite Link β€” Get unique URL to share
  • New Users Join β€” They can vouch for you or you can vouch for them
  • Build Your Network β€” Stronger network = more credit opportunities

πŸ’° DeFi Integration

Yield Vaults (10-20% APY)

  • Automatic Deposits β€” Incoming USDC automatically goes to vault
  • High Yield β€” Earn 10-20% APY on idle funds
  • Easy Withdrawals β€” Access your funds anytime
  • Real-Time Tracking β€” See your earnings grow daily

Supported Protocols

  • Blend Protocol β€” Stellar-based lending
  • Stellar AMM β€” Automated market maker pools
  • Future Integrations β€” Additional protocols coming soon

πŸ“Š Database schema

Authoritative DDL lives in supabase/migrations/ (apply via Supabase CLI or dashboard). Feature areas include profiles and passkeys, trust and vouches, Stellar wallet metadata, Gmail-derived ledger tables, and vault/category extensions.

See Email ledger and Gmail for the ingestion model.


Local development

Create .env.local at the repo root. Typical variables:

# Turnkey (dashboard API key β€” store securely; private material is shown once)
NEXT_PUBLIC_TURNKEY_API_BASE_URL=https://api.turnkey.com
NEXT_PUBLIC_TURNKEY_ORG_ID=
NEXT_PUBLIC_TURNKEY_API_PUBLIC_KEY=
NEXT_PUBLIC_TURNKEY_API_PRIVATE_KEY=

# Stellar (classic)
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
USDC_ASSET_CODE=USDC
USDC_ISSUER=GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN

# Vault / strategy integration (see docs)
VAULT_PROTOCOL=blend
VAULT_MIN_DEPOSIT=10

# Gmail linking (Settings). See docs/email-ledger-and-gmail.md
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
# GOOGLE_CLIENT_ID=          # alternative to GOOGLE_OAUTH_CLIENT_ID
# GOOGLE_CLIENT_SECRET=       # alternative to GOOGLE_OAUTH_CLIENT_SECRET
# GOOGLE_REDIRECT_URI=        # optional; must match Google Cloud OAuth client if set

Soroban / DeFindex variables are documented in Wallet, Stellar, and DeFindex.


πŸ“š Documentation index

Full index: docs/README.md

Topic Guide
Privacy wallet roadmap (Phases 1–10) docs/privacy-wallet-roadmap.md
Architecture and platform docs/architecture-and-platform.md
Authentication and accounts docs/authentication-and-accounts.md
Wallet, Stellar, DeFindex docs/wallet-stellar-defindex.md
Email ledger and Gmail docs/email-ledger-and-gmail.md
Payments and settlement docs/payments-and-settlement.md
Treasury purchasing power engine docs/treasury-purchasing-power.md
Trust, vouches, credit docs/community-trust-and-credit.md
Development (PWA icons, scripts, testing) docs/development-guide.md
Consolidated history note docs/project-history.md
Ledger merchant categorization (LLM) lib/ledger/merchant-categorization-llm-rules.md

πŸ“ˆ Roadmap

Two roadmaps apply to this product:

  1. Privacy + compliance stack (Phases 1–10) β€” passkeys, smart accounts, credentials, rotating addresses, ZK compliance, shielded treasury. Canonical doc: docs/privacy-wallet-roadmap.md.
  2. Sozu Credit product features (below) β€” DeFi, education, community credit, and UX milestones.

βœ… Product Phase 1: Foundation (Completed)

  • Passkeys authentication
  • Stellar wallet creation
  • Trust points & vouching
  • Basic UI/UX

🚧 Product Phase 2: DeFi Integration (In Progress)

  • USDC asset setup
  • Yield vault integration
  • Auto-deposit logic
  • Balance aggregation

πŸ“… Product Phase 3: Education Portal

  • Course modules
  • Progress tracking
  • Certification system
  • Credit unlocking

πŸ“… Product Phase 4: Credit Pools

  • Decentralized credit contracts
  • Disbursement system
  • Repayment tracking
  • Trust score integration

πŸ“… Product Phase 5: Advanced Features

  • Multi-asset support
  • Payment links
  • Receipt OCR
  • AI financial assistant

🎯 Mission

Sozu Credit believes that credit should be accessible to everyone, not just those with traditional credit scores. Through community vouching, education, and DeFi integration, we're building a more inclusive financial system where trust and reputation matter more than paperwork.

Vouched, not Verified. Credit for everyone.

Releases

Packages

Contributors

Languages