How microsoft/seal works
High-Level Architecture Components
• Native C++ Library (primary implementation)
• SEAL_C Wrapper (C interface layer)
• .NET Wrapper (SEALNet)
b) Encryption Schemes (Top section):
• BFV Scheme
• BGV Scheme
• CKKS Scheme
c) Support Systems (Bottom section):
• Memory Management System
• Serialization System
• Random Number Generation
Key Relationships and Interactions
• How the C++ core components are wrapped by SEAL_C
• How SEALNet depends on SEAL_C
• Encryption schemes to their respective encoders and evaluators
• Memory management system interactions with all components
Component Details
• Encryptors
• Decryptors
• Evaluators
• KeyGenerators
• BatchEncoder
• CKKSEncoder
• Serialization Components
• Memory Management
• PRNG Systems
Integration Points
External integration points:
• Optional dependencies (Intel HEXL, ZLIB, etc.)
• Platform-specific optimizations
• Build system connections
Implementation Details
• Line styles for different types of dependencies
Specific Elements
Core Classes:
• SEALContext
• EncryptionParameters
• Ciphertext/Plaintext
• PublicKey/SecretKey
• GaloisKeys/RelinKeys
Utility Classes:
• MemoryPoolHandle
• BatchEncoder
• CKKSEncoder
• Evaluator
Cross-Platform Support
A section showing supported platforms:
• Windows
• Linux
• macOS
• Android
• iOS
• WebAssembly
Cross-platform support
Use a hierarchical layout with:
• Core components in the center
• Supporting systems radiating outward
• Clear boundaries between native and managed code
• Distinct sections for different encryption schemes
Remember to:
• Use consistent styling
• Version information
• Document key dependencies
This will create a comprehensive visualization of Microsoft SEAL's architecture while maintaining clarity and usefulness for development purposes.