confidential
Manage confidential (private) transfers via Tongo Cash on Starknet — setup, fund, transfer, withdraw, ragequit, rollover using ZK proofs. Use this skill when the user wants to send tokens privately, hide transfer amounts, use zero-knowledge proofs, set up Tongo, fund or withdraw from a confidential account, perform an emergency exit (ragequit), or activate pending balance (rollover). Also trigger when the user says "send privately", "confidential transfer", "hide my transaction", "Tongo Cash", "ZK transfer", or any variation about privacy-preserving transfers — even if they don't use the word "confidential".
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- confidential
- license
- MIT
- metadata
- { "author": "ahmetenesdur", "version": "0.1.0", "category": "transaction" }
- description
- Manage confidential (private) transfers via Tongo Cash on Starknet — setup, fund, transfer, withdraw, ragequit, rollover using ZK proofs. Use this skill when the user wants to send tokens privately, hide transfer amounts, use zero-knowledge proofs, set up Tongo, fund or withdraw from a confidential account, perform an emergency exit (ragequit), or activate pending balance (rollover). Also trigger when the user says "send privately", "confidential transfer", "hide my transaction", "Tongo Cash", "ZK transfer", or any variation about privacy-preserving transfers — even if they don't use the word "confidential".
- allowed-tools
- [ "Bash(npx starkfi@latest conf-setup *)", "Bash(npx starkfi@latest conf-balance)", "Bash(npx starkfi@latest conf-balance *)", "Bash(npx starkfi@latest conf-fund *)", "Bash(npx starkfi@latest conf-transfer *)", "Bash(npx starkfi@latest conf-withdraw *)", "Bash(npx starkfi@latest conf-ragequit)", "Bash(npx starkfi@latest conf-ragequit *)", "Bash(npx starkfi@latest conf-rollover)", "Bash(npx starkfi@latest conf-rollover *)", "Bash(npx starkfi@latest status)", "Bash(npx starkfi@latest balance)", "Bash(npx starkfi@latest balance *)", "Bash(npx starkfi@latest tx-status *)" ]
- compatibility
- Requires Node.js 22+ and npx.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md344 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Confidential Transfers (Tongo Cash)
Privacy-preserving token transfers using ZK proofs on Starknet. Amounts are hidden on-chain; recipients are identified by elliptic curve public keys, not Starknet addresses.
Prerequisites
- Active session required. If not authenticated, run
authenticate-walletskill first. - Tongo credentials configured (
conf-setup). Must be done once before any other confidential command. - Sufficient public token balance for
conf-fundoperations. - StarkFi v0.8.0 or later. In v0.7.2 and earlier every confidential command except
conf-setupfails with a… is not a constructorerror (the package shipped without the Tongo SDK). If you see that error, tell the user to update StarkFi; do not retry.
Rules
- BEFORE any confidential operation, run
npx starkfi@latest statusto verify authentication. conf-setupMUST be called before any other confidential command. It only needs to run once.- BEFORE
conf-fund, checkbalanceto verify sufficient public token balance. - BEFORE
conf-transferorconf-withdraw, checkconf-balanceto verify sufficient active balance. - After the recipient receives a transfer, remind them to run
conf-rolloverto activate pending balance. conf-ragequitis a DESTRUCTIVE operation — it empties the entire confidential balance. Always warn the user and get explicit confirmation.- AFTER any transactional operation (
conf-fund,conf-transfer,conf-withdraw,conf-ragequit,conf-rollover), verify withtx-status. - The Tongo private key is stored locally at
~/.local/share/starkfi/confidential.jsonwith strict0o600permissions and is never sent to the network.
Setup (One-Time)
The user first needs a Tongo Private Key. They can generate or export this key through the Tongo Cash or refer to the Tongo Documentation.
npx starkfi@latest conf-setup --key <TONGO_PRIVATE_KEY> --contract 0x1234…
Commands
Check Balance
npx starkfi@latest conf-balance [--json]
Returns: active balance, pending balance, nonce, Tongo address.
Fund Confidential Account
Move public ERC-20 tokens into a private confidential balance.
npx starkfi@latest conf-fund <amount> [--token <symbol>] [--simulate] [--json]
Transfer Confidentially
Send tokens privately to another Tongo account. Recipient is identified by their public key coordinates (x, y).
npx starkfi@latest conf-transfer <amount> --recipient-x <x> --recipient-y <y> [--token <symbol>] [--simulate] [--json]
Withdraw to Public
Convert private balance back to public ERC-20 tokens.
npx starkfi@latest conf-withdraw <amount> [--to <address>] [--token <symbol>] [--simulate] [--json]
Ragequit (Emergency Exit)
Withdraw the entire confidential balance to a public address immediately.
npx starkfi@latest conf-ragequit [--to <address>] [--json]
Rollover (Activate Pending)
Received transfers start as "pending" and must be rolled over to become spendable.
npx starkfi@latest conf-rollover [--json]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
amount |
number | Amount for fund/transfer/withdraw | Yes |
--key |
string | Tongo private key (setup only) | Yes (setup) |
--contract |
string | Tongo contract address | Yes (setup) |
--recipient-x |
string | Recipient public key X coordinate | Yes (transfer) |
--recipient-y |
string | Recipient public key Y coordinate | Yes (transfer) |
--token |
string | Token symbol (default: USDC) |
No |
--to |
string | Recipient Starknet address | No |
--simulate |
flag | Estimate fees without broadcasting | No |
--json |
flag | Output as JSON | No |
Examples
User: "Set up my Tongo account"
npx starkfi@latest conf-setup --key <KEY> --contract 0x1234…
User: "Fund 100 USDC into my confidential account"
npx starkfi@latest status
npx starkfi@latest balance --token USDC
npx starkfi@latest conf-fund 100 --token USDC --simulate
npx starkfi@latest conf-fund 100 --token USDC
npx starkfi@latest tx-status <hash>
User: "Send 50 privately to this public key"
npx starkfi@latest conf-balance
npx starkfi@latest conf-transfer 50 --recipient-x 0xABC --recipient-y 0xDEF --simulate
npx starkfi@latest conf-transfer 50 --recipient-x 0xABC --recipient-y 0xDEF
npx starkfi@latest tx-status <hash>
User: "Withdraw 100 from my confidential account"
npx starkfi@latest conf-balance
npx starkfi@latest conf-withdraw 100 --simulate
npx starkfi@latest conf-withdraw 100
npx starkfi@latest tx-status <hash>
User: "Emergency withdraw everything"
# WARN: This empties the entire confidential balance
npx starkfi@latest conf-ragequit
npx starkfi@latest tx-status <hash>
User: "Activate my pending balance"
npx starkfi@latest conf-rollover
npx starkfi@latest tx-status <hash>
Error Handling
| Error | Action |
|---|---|
CONFIDENTIAL_NOT_CONFIGURED |
Run conf-setup with valid Tongo key and contract address. |
CONFIDENTIAL_FAILED |
Check balance, credentials, and retry. |
Insufficient balance |
Check conf-balance for active balance before operations. |
Not authenticated |
Run authenticate-wallet skill first. |
Related Skills
- Use
authenticate-walletto ensure an active session before confidential operations. - Use
balanceto verify public token balance before funding. - Use
sendfor standard (non-private) token transfers. - Use
configto set a custom RPC if experiencing rate limits.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.