Skip to main content

Function

getEncryptedKey(params)
Fetches the encrypted ciphertext and metadata for a stored wrapped key without decrypting it.

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 retrieve.
bigint
Optional price ceiling for the Lit Action.

Returns

StoredKeyData
Includes ciphertext, dataToEncryptHash, memo, key type, public key, and PKP address.

Example