Function: encryptPrivateKeyToBundle()

encryptPrivateKeyToBundle(params): Promise<string>

Defined in: turnkey.ts:304

Encrypts a private key bundle using HPKE and verifies the enclave signature.

Parameters

params

EncryptPrivateKeyToBundleParams

An object containing the private key, key format, 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 bundle.

Throws

  • If enclave signature verification or any other validation fails.

Function: encryptPrivateKeyToBundle()

encryptPrivateKeyToBundle(params): Promise<string>

Defined in: turnkey.ts:304

Encrypts a private key bundle using HPKE and verifies the enclave signature.

Parameters

params

EncryptPrivateKeyToBundleParams

An object containing the private key, key format, 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 bundle.

Throws

  • If enclave signature verification or any other validation fails.