The export process encrypts the exported bundle to a target public key, which is generated and managed inside the iframe for maximum security.
A request is made to the Turnkey API to export the wallet account, encrypted to the target public key.
The resulting export bundle is injected into the iframe, where it is decrypted and displayed to the user.
If a custom iframe URL is used, a target public key can be provided explicitly.
Hexadecimal and Solana address formats are supported for wallet account exports - defaulting to Hexadecimal if not specified.
Optionally allows specifying the stamper to use for the export (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet) for granular authentication control.
The modal-driven UI ensures the user is guided through the export process and can securely retrieve their exported material.