🔐 Privacy-First

How CipherYield Works

A no-lose prediction market where your votes stay private through FHE encryption and your principal is always protected.

The No-Lose Guarantee

If You Win
Your Deposit:0.5 SOL
Yield Earned:+0.025 SOL
Total Payout:0.525 SOL
If You Lose
Your Deposit:0.5 SOL
Yield Earned:0 SOL
Total Returned:0.5 SOL

* Yield calculated at ~5% APY for demonstration. Actual APY varies by market duration.

Step-by-Step Guide

🔗
Step 1

Connect Wallet

Link your Solana wallet (Phantom, Solflare, or Backpack). No KYC required.

💰
Step 2

Deposit SOL

Fund your position with any amount ≥ 0.01 SOL. Your principal is always protected by the No-Lose model.

🔐
Step 3

Encrypt & Vote

Select YES or NO. Your vote is encrypted using Encrypt FHE (Fully Homomorphic Encryption) and stored as an EBool ciphertext account on Solana — owned by the Encrypt program.

🏛️
Step 4

Governance & Resolution

$CIPHER token holders propose and vote to authorize market resolution. When quorum is reached, CipherYield triggers an IKA dWallet MPC signature via CPI to authorize decryption.

🎁
Step 5

Claim or Recover

Winners claim principal + accumulated yield. Losers get 100% of their principal back. Always. No exceptions.

🔐 How Privacy Works

Encrypt FHE (Fully Homomorphic Encryption): Your vote is encrypted using the Encrypt SDK and stored as an EBool ciphertext account on Solana. The ciphertext is owned by the Encrypt program — not CipherYield — ensuring cryptographic separation of concerns.

On-Chain Validation: When you submit a vote, the smart contract validates that the ciphertext account is genuine: correct owner (Encrypt program), correct size (100 bytes), correct FHE type (EBool), and verified status. This prevents fake or tampered votes.

IKA dWallet MPC Authorization: Decryption can only happen after the DAO governance reaches quorum. When approved, CipherYield triggers a CPI call to IKA'sapprove_message instruction, generating an MPC signature that authorizes the Encrypt relayer to decrypt results. No single entity can decrypt your vote unilaterally.

User Vote → Encrypt FHE (EBool ciphertext) → On-Chain Storage → DAO Governance Quorum → IKA MPC Sign → Decrypt & Resolve