Skip to main content

Function

updateEncryptedKey(params)
Re-encrypts an existing wrapped key and appends the previous state to the versions array.

Parameters

SessionSigsMap
required
Session signatures identifying the PKP that owns the wrapped key.
LitClient
required
Lit client instance used to talk to the wrapped-keys service.
string
required
Identifier of the wrapped key to update.
string
required
New base64-encrypted ciphertext to store.
string
Optional updated memo for the wrapped key.
string
Optional updated ACCs for EVM contract conditions.
bigint
Optional price ceiling for the Lit Action.

Returns

UpdateEncryptedKeyResult
Returns id, pkpAddress, and updatedAt of the updated wrapped key.

Example