⭕
zkvoid Docs
  • ☀️Overview
  • 📗Getting Started
    • ⚙️Setup Token Account
    • ⬇️Deposit Tokens
    • 👨‍🔬Apply Pending Balance
    • 🛫Send Confidential Transfers
    • ⬆️Withdraw Tokens
    • 🤔Understanding Balances
  • 🔎Void vs. CLI
  • ⭕cSOL
  • 📶API
    • ✍️Documentation
    • 👨‍🍳Cookbook
    • 👨‍🔧Deep Dive
Powered by GitBook
On this page
  1. Getting Started

Withdraw Tokens

What it does: Converts your confidential (encrypted) tokens back to regular (visible) tokens.

Transaction details:

  • Decrypts the specified amount from your confidential balance

  • Transfers tokens from confidential state back to regular state

  • Makes the tokens visible on-chain again

  • Generates ZK proofs to verify the withdrawal is valid

Why it's necessary: To use your tokens with standard Solana applications or to make them publicly visible again.

What you're signing:

  1. A message signature for key derivation

  2. Multiple transactions containing:

    • Withdrawal amount encryption/decryption operations

    • Zero-knowledge proofs of balance sufficiency

    • Balance update instructions that move tokens from confidential to regular state

Note: You may need to apply pending balance prior to withdrawing if you have received a confidential transfer.

PreviousSend Confidential TransfersNextUnderstanding Balances

Last updated 8 days ago

📗
⬆️