Function
exportPrivateKey(params)
Decrypts a previously stored wrapped key in a Lit Action and returns the plaintext private key together with metadata.
Parameters
SessionSigsMap
required
Session signatures proving the PKP owns the wrapped key.
LitClient
required
Lit client connected to the network that holds the encrypted key.
'evm' | 'solana'
required
Selects the Lit Action that knows how to handle the key type.
string
required
Identifier returned from
generatePrivateKey, importPrivateKey, or storeEncryptedKey.bigint
Optional spending cap passed to the underlying
executeJs call.Returns
ExportPrivateKeyResult