Skip to content

VeilPayProtocol/veilpay-app

Repository files navigation

VeilPay - CVCT Protocol

CVCT (Confidential Value Confidential Transfer) is a privacy-first token protocol on Solana using Fully Homomorphic Encryption (FHE).

What is CVCT?

CVCT enables:

  • Fully encrypted token balances - Balances are never visible on-chain, even to validators
  • Confidential transfers - Transfer amounts remain encrypted throughout the transaction
  • Programmable privacy - Build privacy-preserving DeFi applications with encrypted state
  • On-chain verification - Verify correctness without revealing sensitive data

Example: VeilPay Payroll

VeilPay Payroll demonstrates CVCT's capabilities by implementing a privacy-preserving payroll system where:

  • Salaries remain confidential
  • Headcount is not exposed
  • Compensation structures are private
  • Payments are auditable through selective disclosure

Technology Stack

  • Solana - High-performance blockchain
  • Inco Network - FHE coprocessor for encrypted computation
  • Anchor - Solana program framework
  • Next.js 14 - Modern web framework
  • TypeScript - Type-safe development

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Architecture

CVCT Core Components

  1. CVCT Mint - Token mint with encrypted supply tracking
  2. CVCT Account - User account with encrypted balance
  3. CVCT Vault - Backing token storage for 1:1 redemption
  4. FHE Operations - Encrypted arithmetic via Inco Network

Payroll Example (Reference Implementation)

Built on top of CVCT primitives:

  • Organization - On-chain entity management
  • Payroll - Payment schedule configuration
  • Members - Recipients with encrypted payment rates
  • Treasury - Organization's CVCT token pool

Documentation

Use Cases

CVCT can power various privacy-preserving applications:

Use Case Description Status
Payroll Private compensation management Reference Implementation
DeFi Confidential trading and lending Coming Soon
Voting Private on-chain governance Coming Soon
Auctions Sealed-bid auctions Coming Soon
Gaming Hidden in-game economies Coming Soon

Key Addresses

Component Address
Program ID Sd92uPUtbHdnoRFmi6xCEsLVh4Yg3KYcNbGXeSJVL5R
Inco Lightning 5sjEbPiqgZrYwR31ahR6Uk9wf5awoX61YGg7jExQSwaj

Learn More

Contributing

This project is under active development as part of the Solana Privacy Hackathon.

License

MIT

About

VeilPay App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors