Getting Started
This guide walks you through integrating the Privacy Boost iOS SDK into your app.Overview
The iOS SDK follows a simple flow:- Initialize - Create SDK instance with configuration
- Connect - Connect wallet via
WalletDelegate - Login - Authenticate and get privacy address
- Use - Deposit, withdraw, transfer tokens
Basic Setup
1. Import the SDK
2. Configure the SDK
3. Initialize
Connecting a Wallet
The SDK uses theWalletDelegate protocol to interact with wallets. You must implement this protocol:
Authentication
After connecting, authenticate with the backend:Core Operations
Check Balance
Deposit Tokens
Move tokens from wallet to shielded pool:Withdraw Tokens
Move tokens from shielded pool to wallet:Private Transfer
Send tokens privately to another user:Error Handling
The SDK throwsSDKError for various failure conditions:
Session Persistence
Save and restore sessions to avoid re-signing:Next Steps
- WalletDelegate Guide - Detailed wallet integration