📚 Technical Documentation
Implementation Docs
Deep dive into CipherYield's IKA dWallet and Encrypt FHE integration — with actual code from our Solana program.
System Architecture
CipherYield integrates two cutting-edge cryptographic protocols on Solana to create a trustless, privacy-preserving prediction market.
🔐
Encrypt FHE
Fully Homomorphic Encryption for private vote storage. Votes are encrypted as EBool ciphertexts owned by the Encrypt program.
🔑
IKA dWallet
MPC-based decentralized wallet for trustless treasury execution. Governance proposals trigger CPI to approve_message for MPC signing.
💰
No-Lose Yield
Principal protection with yield distribution. Winners earn yield, losers get 100% principal back via on-chain claim_payout.
Program IDs (Solana Devnet)env
# CipherYield Program
PROGRAM_ID=6THLuWRYBqtN8Mpsh6GCQAjpDdiMC5y2xpPkSyvpc5wB
# IKA dWallet Program
IKA_PROGRAM_ID=87W54kGYFQ1rgWqMeu4XTPHWXWmXSQCcjm8vCTfiq1oY
# Encrypt FHE Program
ENCRYPT_PROGRAM_ID=4ebfzWdKnrnGseuQpezXdG8yCdHqwQ1SSBHD3bWArND8Data Flow
1User deposits SOL →
deposit() → Position PDA created2User votes → Encrypt SDK creates ciphertext →
submit_vote(ciphertext_ref)3Governance proposes resolution → DAO votes → Quorum triggers
invoke_signed CPI to IKA4IKA MPC signs → Relayer calls
receive_decryption_result() → Market resolved5User calls
claim_payout() → Winner gets principal + yield, Loser gets principal