Back to Documentation
> CORE_CONCEPTS

Core Concepts

Understand the fundamental principles behind ZKPrime's privacy infrastructure

Zero-Knowledge Proofs

Zero-knowledge proofs (ZKPs) allow one party to prove knowledge of information without revealing the information itself. ZKPrime leverages zkSNARKs for efficient proof generation and verification.

How It Works:

  1. User generates a proof of transaction validity
  2. Proof is submitted to Solana smart contract
  3. Contract verifies proof without seeing transaction details
  4. Transaction executes if proof is valid
// Example: Generate a ZK proof
const proof = await client.generateProof({
  statement: 'balance > 1000',
  witness: { balance: 5000 },
  hideWitness: true
});

// Proof reveals nothing about actual balance
console.log(proof.isValid); // true

Privacy Layer Architecture

ZKPrime operates as a privacy layer on top of Solana, providing confidentiality without modifying the base protocol.

┌─────────────────────────────────────────┐
│         Application Layer               │
│  (Your DApp with ZKPrime SDK)           │
└─────────────────┬───────────────────────┘
                  │
┌─────────────────▼───────────────────────┐
│         ZKPrime Privacy Layer           │
│  • Proof Generation                     │
│  • Encrypted State Management           │
│  • Privacy-Preserving Transactions      │
└─────────────────┬───────────────────────┘
                  │
┌─────────────────▼───────────────────────┐
│         Solana Blockchain               │
│  • Proof Verification Programs          │
│  • Transaction Execution                │
└─────────────────────────────────────────┘

Encrypted States

ZKPrime uses homomorphic encryption to enable computations on encrypted data, allowing state updates without revealing sensitive information.

Public State

  • Account addresses
  • Transaction timestamps
  • Proof verification status

Private State

  • Transaction amounts
  • Account balances
  • Token types
  • Transaction metadata

Confidential Compute

Execute smart contract logic on encrypted data using ZKPrime's confidential compute environment.

// Example: Confidential auction bid
const bid = await client.submitConfidentialBid({
  auctionId: 'auction-123',
  amount: 5000, // Encrypted on submission
  timestamp: Date.now()
});

// Bid amount remains private until reveal phase
// Contract can still verify bid validity

Use Cases:

  • Private DeFi trading and liquidity provision
  • Confidential voting and governance
  • Sealed-bid auctions
  • Private payroll and payment systems

Next Steps