File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/wrapped-keys/src/lib/api Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,18 @@ import {
66 getPkpAddressFromSessionSig ,
77} from './utils' ;
88
9- /** Update an existing wrapped key and append the previous state to versions. */
9+ /**
10+ * Updates an existing wrapped key and appends the previous state to versions.
11+ *
12+ * @param {UpdateEncryptedKeyParams } params - The parameters required to update the encrypted private key.
13+ * @param {Record<string, any> } params.pkpSessionSigs - The session signatures for the PKP.
14+ * @param {any } params.litClient - The Lit Protocol client instance.
15+ * @param {string } params.id - The unique identifier of the wrapped key to update.
16+ * @param {string } params.ciphertext - The new encrypted private key ciphertext.
17+ * @param {any } params.evmContractConditions - The EVM contract conditions for access control.
18+ * @param {string } [params.memo] - An optional memo to associate with the update.
19+ * @returns {Promise<UpdateEncryptedKeyResult> } An object containing the id, pkpAddress, and updatedAt timestamp of the updated key.
20+ */
1021export async function updateEncryptedKey (
1122 params : UpdateEncryptedKeyParams
1223) : Promise < UpdateEncryptedKeyResult > {
You can’t perform that action at this time.
0 commit comments