veil

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Veil - Private Transactions on Base

Veil - Base上的隐私交易

Privacy and shielded transactions on Base via Veil Cash. Deposit ETH into a private pool, withdraw/transfer privately using ZK proofs.
通过Veil Cash在Base上实现隐私与屏蔽交易。将ETH存入私有资金池,使用ZK证明进行私密提取/转账。

How It Works

工作原理

  1. Deposit - Send ETH to private pool (public → private)
  2. Transfer - Move funds privately (private → private)
  3. Withdraw - Exit to public address (private → public)
All private operations use ZK proofs - no one can link your deposits to withdrawals.
  1. 存入 - 将ETH发送至私有资金池(公开→私有)
  2. 转账 - 私密转移资金(私有→私有)
  3. 提取 - 转出至公开地址(私有→公开)
所有私密操作均使用ZK证明——无人能将你的存入记录与提取记录关联。

Commands

命令

Setup

设置

/veil init                           Initialize Veil keypair
/veil status                         Check config and relay health
/veil init                           初始化Veil密钥对
/veil status                         检查配置与中继健康状态

Balance

余额

/veil balance                        Check all balances
/veil queue                          Check queue balance (pending deposits)
/veil private                        Check private balance
/veil balance                        查看所有余额
/veil queue                          查看队列余额(待处理的存入)
/veil private                        查看私有余额

Operations

操作

/veil deposit <amount>               Deposit ETH to private pool
/veil withdraw <amount> <address>    Withdraw to public address
/veil transfer <amount> <veil-key>   Private transfer to another user
/veil merge                          Merge UTXOs (consolidate)
/veil deposit <amount>               向私有资金池存入ETH
/veil withdraw <amount> <address>    提取至公开地址
/veil transfer <amount> <veil-key>   私密转账至其他用户
/veil merge                          合并UTXO(整合资金)

Examples

示例

/veil init
/veil balance
/veil deposit 0.1
/veil withdraw 0.05 0x1234...
/veil init
/veil balance
/veil deposit 0.1
/veil withdraw 0.05 0x1234...

Security Notes

安全注意事项

  • Never share your VEIL_KEY - it controls your private funds
  • Store keypair securely (chmod 600)
  • Use dedicated RPC to avoid rate limits
  • 切勿分享你的VEIL_KEY - 它掌控着你的私有资金
  • 安全存储密钥对(设置权限chmod 600)
  • 使用专用RPC以避免速率限制

Setup

设置

bash
undefined
bash
undefined

Initialize creates keypair

初始化会创建密钥对

/veil init
/veil init

Or manually set:

或手动设置:

export VEIL_KEY="..." # Your Veil private key export PRIVATE_KEY="0x..." # For deposits (public tx)
undefined
export VEIL_KEY="..." # 你的Veil私钥 export PRIVATE_KEY="0x..." # 用于存入(公开交易)
undefined

Requirements

要求

  • ETH on Base for deposits and gas
  • Node.js for ZK proof generation
  • Veil SDK:
    npm install -g @veil-cash/sdk
  • Base链上的ETH,用于存入和支付Gas费
  • Node.js,用于生成ZK证明
  • Veil SDK:
    npm install -g @veil-cash/sdk