Skip to content

Sdk Architecture

The Alphyn SDK is built with a modular architecture designed for security and performance:

  1. AlphynSDK: Main SDK class providing core functionality
  2. Native Security Engine: low-level security scanning engines
  3. Event System: Asynchronous event-driven communication
  4. Network Security: JWT authentication and SSL support
  5. Secure Storage: Encrypted keystore management

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

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.