Overview
Feature flags are set on thefeatureFlags option when you create a Portal instance. They control optional behavior such as signing performance and backup options. 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()orportal.rawSign()).
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.
Reference
For all constructor options and thefeatureFlags property, see the Web SDK Reference.