Skip to content

Zyntarivoid/Veillend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ VeilLend

Private Lending. Stellar Speed. X-Ray Privacy.

VeilLend is a privacy-first decentralized lending protocol built on Stellar/Soroban, enabling users to deposit, borrow, and transact with complete financial privacyβ€”powered by X-Ray ZK proofs for shielded transactions . With sub-second settlements, near-zero fees (<0.01Β’), and multi-chain support, VeilLend is designed for instant, borderless DeFi.

This tool is ideal for:

  • πŸ’Ό Freelancers managing cross-border payments and lending
  • 🎨 Creators accepting private donations and loans
  • 🌍 Individuals handling remittances with financial privacy
  • 🏒 Small businesses streamlining asset management across blockchains

Whether you're a solo developer building privacy-first finance or a team scaling multi-chain DeFi, VeilLend prioritises simplicity, self-custody, and security without intermediaries.


πŸ—οΈ Architecture

VeilLend is currently organized around the active Stellar contract and mobile app workspaces, with older implementation work archived under legacy/ for reference:

veillend/
β”œβ”€β”€ veilend-soroban/       # Active Soroban Rust contract workspace for VeilLend on Stellar
β”œβ”€β”€ veilend-mobile/        # Active React Native / Expo mobile app
β”œβ”€β”€ veilend-web/           # Active Next.js 16 web application
β”œβ”€β”€ legacy/
β”‚   β”œβ”€β”€ veilend-backend/   # Archived NestJS backend from the previous architecture
β”‚   └── docs/              # Archived migration notes and contributor docs
└── README.md
Component Tech Stack Description
Smart Contracts Rust/Soroban Initial VeilLend contract scaffold for lending state, asset configuration, and event emission on Stellar.
Mobile App React Native (Expo) Cross-platform mobile experience for deposit, borrow, repay, privacy mode, and wallet-driven onboarding.
Web App Next.js 16 / TypeScript Privacy-first web interface for VeilLend on Stellar, with App Router, Tailwind CSS, and full TypeScript support.
Backend API Planned Rebuild The backend is being rebuilt for the Stellar ecosystem; the previous NestJS version is archived in legacy/veilend-backend.
Archived Research Markdown / Notes Migration notes and previous contributor docs are preserved in legacy/docs.

πŸ” Smart Contracts (Soroban/Rust)

Located in /veilend-soroban, the current Soroban codebase is the new VeilLend contract foundation on Stellar.

Current contract foundation

  • Initializes the contract with an admin and minimum collateral ratio.
  • Tracks supported assets for lending actions.
  • Stores per-user positions with deposited and borrowed balances.
  • Exposes basic deposit, borrow, repay, and withdraw state transitions.
  • Emits events for indexing and analytics.

Planned next layer

  • Stellar token transfer integration for real asset movement.
  • Oracle-backed collateral valuation and liquidation rules.
  • Shielded commitment/nullifier flows for privacy-preserving actions.
  • Additional testing, security review, and deployment automation.

πŸ“± Mobile App Features

Core

  • πŸ›‘οΈ X-Ray Privacy Dashboard: Toggle "Privacy Mode" to mask balances and positions with zero-knowledge proofs.
  • πŸ”‘ Wallet Login: Authenticate securely using cryptographic signatures and wallet-based onboarding.
  • ⚑ Instant Actions: One-tap Deposit, Borrow, and Repay flows across multiple blockchains.
  • πŸ”„ Rebuild-Friendly Architecture: The app is being prepared for a new Stellar-native backend and contributor-driven implementation.

Privacy & Security

  • X-Ray Privacy Toggle: Designed to hide sensitive balances and activity as the privacy layer is integrated.
  • Scam Alerts: Flags suspicious transactions (e.g., unusual patterns, missing memos).
  • Self-Custody: Funds route directly to your walletβ€”no central holding.

Advanced (v2+)

  • Multi-asset support with future expansion across Stellar-native and interoperable assets.
  • Recurring loan/repayment links for automated financial management.
  • Fiat on/off-ramps (MoneyGram, Banxa) for seamless fiat-to-crypto conversion.
  • Notifications (email/Telegram) for transaction confirmations and alerts.

πŸš€ Getting Started

Prerequisites

  • Node.js (v18+; nodejs.org)
  • Rust toolchain (for Soroban contracts; install via rustup.rs)
  • Stellar CLI (for contract deployment; on Ubuntu install pkg-config, libdbus-1-dev, and libudev-dev first, then run cargo install --locked stellar-cli --version 23.0.1)
  • Docker (for local Stellar network; docker.com)
  • A Stellar wallet (Freighter recommended; freighter.app)
  • Git (for cloning)
  • Expo Go (for mobile testing)

Installation

Clone the repository:

git clone https://github.com/your-org/veillend.git
cd veillend

# Install mobile dependencies
cd veilend-mobile && npm install

Environment Setup

Configure the Stellar network:

  • Development: Defaults to testnet; fund your wallet at laboratory.stellar.org
  • Production: Ensure your wallet holds the required live assets and network configuration

For contracts: Add environment variables in the veilend-soroban/ workspace as needed for your target Stellar network and deployment flow.

Running Locally

Start the mobile app from its workspace:

cd veilend-mobile && npm install && npx expo start

For contracts (testing/deploying):

cd veilend-soroban
cargo build --target wasm32-unknown-unknown --release
stellar contract build

The previous backend and migration documents remain available under legacy/ while the new Stellar-native backend is rebuilt.


πŸ› οΈ Tech Deep Dive: ZK Privacy Flow (Stellar)

  1. Client-Side: User selects a privacy-enabled lending action from the mobile app.
  2. Preparation: The app prepares lending inputs and any privacy metadata needed for the action.
  3. On-Chain: The Soroban contract records the position update and emits events for indexing.
  4. Off-Chain Services: A new Stellar-native backend will eventually sync positions and transaction history for the app experience.
  5. Future Privacy Layer: Shielded commitments and proof verification will extend this flow in later releases.

πŸ“œ License

MIT

🌟 Join the Drips Monthly Wave Contributor Program

We're actively seeking contributors to help build VeilLend on Stellar! This is your opportunity to:

  • ✨ Contribute to cutting-edge privacy-focused DeFi on Stellar
  • πŸ’° Earn rewards through the Drips contributor program
  • 🀝 Collaborate with experienced blockchain developers
  • πŸš€ Gain experience with Soroban, Rust, and multi-chain development

How to Get Started:

  1. Setup: Follow the Getting Started guide above
  2. Pick an Issue: Check GitHub issues labeled good-first-issue, soroban, mobile, or privacy
  3. Contribute: Implement features, fix bugs, or help shape the new Stellar-native backend
  4. Submit: Create a PR with tests and documentation updates

Testing

Run tests to validate code quality and functionality:

# Soroban contract checks
cd veilend-soroban && cargo build --locked --target wasm32-unknown-unknown --release

# Mobile-specific tests
cd veilend-mobile && npm test

Deployment

Deployment is automated for most components:

  • Mobile: Use Expo CLI for over-the-air updates or app store builds
  • Contracts: Build and deploy from the veilend-soroban/ workspace using Cargo and Stellar CLI
  • Backend: The new Stellar-native backend will be introduced after the archived implementation is replaced

Contributing

Contributions are welcome and encouraged to help evolve VeilLend! To get started:

  • Report Issues: Use GitHub Issues for bugs or feature requests. Include reproduction steps, environment details, and screenshots where possible.
  • Propose Features: Start a Discussion thread to align on ideas before coding.
  • Submit Pull Requests:
    • Fork the repository and create a feature branch: git checkout -b feature/your-feature
    • Implement changes, ensuring they pass linting and tests
    • Commit with clear messages (e.g., "feat: add multi-asset swap support")
    • Push and open a PR against main. Reference any related issues.

All contributors must adhere to the Code of Conduct and sign off commits for DCO compliance.

Resources:

Ready to contribute? Start with the VeilLend Soroban contract in /veilend-soroban and help us build the future of private lending on Stellar! 🌟

About

Private Lending. Stellar Speed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors