Overview
TheFeatureFlags
struct is used to configure feature flags when initializing the Portal SDK. Each flag corresponds to a specific feature or behavior that can be toggled on or off.
Example Usage:
Available Feature Flags
Below is a list of available feature flags and their functionality.1. isMultiBackupEnabled
- Type:
Bool?
- Default:
nil
(disabled) - Description: Enables or disables multi-backup functionality. When enabled, users can create multiple backups.
2. useEnclaveMPCApi
- Type:
Bool?
- Default:
nil
(disabled) - Description: Enables the use of the Enclave MPC API for signing transactions. When enabled, MPC operations are executed server-side in a secure AWS Nitro Enclave, ensuring consistent and faster signing times.
useEnclaveMPCApi
flag, the client key share is transmitted to a Trusted Execution Environment (TEE) hosted in an AWS Nitro Enclave. This ensures:
- Encrypted Memory: All data processed in the enclave is encrypted and inaccessible to anyone, including Portal employees.
- Verified Execution: Users can cryptographically verify that their request was handled in a secure enclave using signed measurements.
useEnclaveMPCApi
to true
, the Portal instance will use the Enclave MPC API for signing transactions, ensuring faster computation and consistent performance across client devices.