Swift
Overview
Core Features
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Swift Application Layer │
├─────────────────────────────────────────────────────────────────┤
│ Colibri.swift API │
│ • Colibri class (main interface) │
│ • RequestHandler protocol │
│ • ColibriStorage protocol │
│ • Error handling & type conversion │
├─────────────────────────────────────────────────────────────────┤
│ Swift-C Bridge Layer │
│ • swift_storage_bridge.c │
│ • Function pointer callbacks │
│ • Memory management │
├─────────────────────────────────────────────────────────────────┤
│ Core C Libraries │
│ • Prover (proof generation) │
│ • Verifier (proof verification) │
│ • Storage plugin system │
│ • Cryptographic libraries (blst, ed25519) │
└─────────────────────────────────────────────────────────────────┘Quick Start
iOS Integration
iOS Example App
macOS Development
Development Workflow
Local macOS Build
iOS XCFramework Build
Test System
Unit Tests
Integration Tests
iOS Test App
API Reference
Colibri Class
Prover Mode
Privacy (PAP)
Weak Subjectivity Period check
Freshness window for latest proofs
latest proofsPrivacy-preserving eth_call (oblivious + PAP + hybrid)
eth_call (oblivious + PAP + hybrid)Storage System
Error Handling
Verified EVM reverts (ColibriError.revert)
ColibriError.revert)Storage Implementations
Default File Storage
UserDefaults Storage (iOS)
Core Data Storage
Chain Configurations
Supported Chains
Multi-Chain Setup
Performance Optimization
Storage Performance
Memory Management
Testing
Mock Request Handler
Test Utils
CI/CD Integration
GitHub Actions
Automatic Distribution
Troubleshooting
Common Issues
"No such module 'Colibri'"
iOS Simulator Crashes
RPC Calls Fail
Storage Permissions
Debug Tips
Storage Debug
Network Debug
Platform Specifics
iOS Considerations
macOS Considerations
Further Information
Last updated