Sdk Architecture
SDK Architecture
Section titled “SDK Architecture”Key Components
Section titled “Key Components”The Alphyn SDK is built with a modular architecture designed for security and performance:
- AlphynSDK: Main SDK class providing core functionality
- Native Security Engine: low-level security scanning engines
- Event System: Asynchronous event-driven communication
- Network Security: JWT authentication and SSL support
- Secure Storage: Encrypted keystore management
Security Features
Section titled “Security Features”Core Security Capabilities:
- Runtime Application Self-Protection (RASP): Real-time threat detection
- Anti-Tampering: Detection of app modification attempts
- Anti-Debugging: Protection against runtime analysis
- Device Security Assessment: Evaluation of device security posture
- Network Security: End-to-end encrypted communications
- Action Verification: Backend-assisted verification for high-risk user actions
Event-Based Architecture
Section titled “Event-Based Architecture”The SDK uses an event-driven architecture that provides three main callback types:
public protocol AlphynSecurityListener: AnyObject { func onSuccess(_ result: AlphynCallbackResult) func onFailure(_ result: AlphynCallbackResult) func onThreatDetected(_ result: AlphynCallbackResult)}This simplified approach replaces complex multi-callback systems with a unified, easy-to-use interface.