Overview
Feature flags are set on thefeatureFlags option when you create a Portal instance. They control optional behavior such as signing performance, backup options, and which MPC backend is used. You do not need to change your signing or wallet code when enabling flags—the SDK adapts automatically.
Enabling feature flags
PassfeatureFlags in the Portal constructor:
Available flags
usePresignatures
- Type:
boolean - Default:
false - Description: When enabled, the SDK uses presignatures to improve signing latency. You do not call any presignature APIs yourself; the SDK generates presignatures in the background and uses them automatically when you sign (e.g. via
portal.request()or send-asset flows).
usePresignatures when you want lower latency on EVM signing without changing your integration. The SDK fills a small buffer after wallet creation or recovery and replenishes it as presignatures are used.
Limitations
- Applies only to SECP256K1 (EVM) signing. Solana (ED25519) signing is unchanged.
- Presignatures are single-use; the SDK manages creation and consumption for you.
useEnclaveMPCApi
- Type:
boolean - Default:
false - Description: Use the Enclave MPC API for signing instead of the standard MPC path. Signing runs in a server-side TEE (AWS Nitro Enclave), which can yield more consistent and often faster signing across devices.
enableSdkPerformanceMetrics
- Type:
boolean - Default:
false - Description: Enables SDK performance metrics collection. Used for internal monitoring and debugging.
Reference
For the fullFeatureFlags type and constructor options, see @portal-hq/core.