zkRunezkRune
FinancialMedium

Token Swap Proof

Prove sufficient balance for swap anonymously

Difficulty: Medium
Time: ~30 seconds
Privacy: 100% Shielded

Generate Proof

Secret key to authorize the swap

Example: 1500 = 1.5x rate (1 Token A = 1.5 Token B)

How It Works

  1. 1Enter token balances (private)
  2. 2Set swap amount and rate
  3. 3Provide swap authorization secret
  4. 4System validates swap feasibility
  5. 5Generate commitment proof

Use Cases

DEX token swaps
P2P trading
Liquidity proofs
Cross-chain swaps

Technical Details

Proof System:zk-SNARKs
Circuit:Age Comparison
Constraints:~1,000
Blockchain:Zcash Testnet

View Circuit Code

See the actual ZK circuit implementation