Skip to content

blessedux/SozuCredit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

62 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sozu Credit

Vouched, not Verified. Credit for everyone.

A simple, passkeys-powered wallet that gives entrepreneurs instant access to high-yield DeFi and unlocks decentralized credit through community vouching and education.


🎯 Value Proposition

Sozu Credit is a next-generation financial platform that combines:

  • βœ… Simple UX β€” One-tap access, no passwords, no complexity
  • πŸ” Passkeys Powered β€” Secure, instant login with biometric authentication (no passwords, no KYC)
  • πŸ’° High-Yield DeFi β€” Automatic 10-20% APY on USDC holdings via Stellar smart wallets
  • πŸ“š Education Gateway β€” Learn to unlock decentralized credit opportunities
  • 🀝 Community Vouching β€” Get vouched by other users to access credit based on trust, not traditional credit scores

What Makes Us Different?

  1. No Passwords, No KYC β€” Sign in instantly with your fingerprint or face ID via passkeys
  2. Earn While You Hold β€” Your USDC automatically earns 10-20% APY in DeFi vaults
  3. Community-Based Credit β€” Access microloans through vouching from other entrepreneurs, not banks
  4. Learn While You Earn β€” Educational courses unlock higher credit limits and opportunities
  5. Simple & Fast β€” Beautiful, minimal design that works offline and on any device

πŸš€ Quick Start

For Users

  1. Sign Up β€” Tap to create account with passkeys (no email, no password)
  2. Receive USDC β€” Get paid directly to your Stellar smart wallet
  3. Earn Yield β€” Funds automatically earn 10-20% APY in defivaults
  4. Get Vouched β€” Invite others or get vouched to build your trust score
  5. Unlock Credit β€” Complete education modules to access decentralized credit pools

For Developers

# Clone repository
git clone https://github.com/sozu-capital/sozu-credit.git
cd sozu-credit

# Install dependencies
pnpm install

# Set up environment variables
cp .env.example .env.local

# Run development server
pnpm dev

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

Core Tables

  • Users β€” Passkeys, Stellar wallets, profiles
  • Trust Points β€” Balance, vouches, reputation
  • USDC Holdings β€” Wallet balance + vault balance
  • Vault Deposits β€” Deposit history, yield earnings
  • Vouches β€” Who vouched for whom, trust points transferred
  • Education Progress β€” Course completions, certifications

See scripts/001_create_schema.sql for full schema.


Turnkey (for Passkeys and Stellar Wallet Management)

NEXT_PUBLIC_TURNKEY_API_BASE_URL=https://api.turnkey.com NEXT_PUBLIC_TURNKEY_ORG_ID=your_turnkey_organization_id NEXT_PUBLIC_TURNKEY_API_PUBLIC_KEY=your_turnkey_api_public_key NEXT_PUBLIC_TURNKEY_API_PRIVATE_KEY=your_turnkey_api_private_key

Note: You need BOTH public and private keys from your API key pair

When creating an API key in Turnkey dashboard, save both keys securely

The private key is only shown once and cannot be retrieved later

Stellar

STELLAR_NETWORK=testnet # or 'mainnet' STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org # Auto-set based on STELLAR_NETWORK if not provided

USDC Asset

USDC_ASSET_CODE=USDC USDC_ISSUER=GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN

Vault Protocol

VAULT_PROTOCOL=blend # or 'stellar_amm' VAULT_MIN_DEPOSIT=10


---

## πŸ“ˆ Roadmap

### βœ… Phase 1: Foundation (Completed)

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

### 🚧 Phase 2: DeFi Integration (In Progress)

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

### πŸ“… Phase 3: Education Portal

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

### πŸ“… Phase 4: Credit Pools

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

### πŸ“… 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.**

---

## πŸ“š Additional Resources

- [Defindex/Blend Protocol Plan](./DEFINDEX_BLEND_PROTOCOL_PLAN.md)
- [Auth Flow Documentation](./AUTH_FLOW_FIX.md)
- [Testing Guide](./TESTING_AUTH_FLOW.md)
- [Mobile Optimization](./MOBILE_ANIMATION_OPTIMIZATION.md)

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors