Export Wallets and Keys
Turnkey’s export functionality allows your end users to backup or transfer a Wallet by securely viewing the wallet’s mnemonic phrase, a Wallet Account or a raw Private Key. We engineered this feature to ensure that the user can export their mnemonic or private key without exposing it to Turnkey or your application.
The process of exporting wallets, wallet accounts or private keys from Turnkey is broken up into two primary steps:
Export the wallet, wallet account or private key via Turnkey. You must specify the wallet ID, wallet address or private key ID, as well as a target public key, which the wallet or private key will be encrypted to. Encryption ensures that the key material is only accessible by the client, and cannot be extracted by any man-in-the-middle (MITM)
Decrypt the resulting bundle returned by Turnkey. This will result in the wallet mnemonic or the private key in case of exporting a wallet account or raw private key.
See the Enclave to end-user secure channel for more technical details.
Implementation Guides
See Code Examples for more details.