Package: react-wallet-kit

Overview

Exports a private key as an encrypted bundle.
  • This function exports the specified private key as an encrypted bundle, suitable for backup or transfer.
  • The exported bundle contains the private key’s key material, encrypted to the provided target public key.
  • If a targetPublicKey is provided, the bundle will be encrypted to that public key; otherwise, an error will be thrown.
  • If an organizationId is provided, the private key will be exported under that sub-organization; otherwise, the current session’s organizationId is used.
  • Optionally allows stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to an ExportBundle object containing the encrypted private key and metadata.