Skip to main contentFunction: encryptWalletToBundle()
encryptWalletToBundle(params): Promise<string>
Defined in: turnkey.ts:360
/**
- Encrypts a mnemonic wallet bundle using HPKE and verifies the enclave signature.
Parameters
params
EncryptWalletToBundleParams
An object containing the mnemonic, bundle, user, and organization details. Optionally, you can override the default signer key (for testing purposes).
*
Returns
Promise<string>
- A promise that resolves to a JSON string representing the encrypted wallet bundle.
Throws
- If enclave signature verification or any other validation fails.