Skip to content

Commit e381b1f

Browse files
AnsonhkgCopilot
andauthored
Update packages/wrapped-keys/src/lib/api/update-encrypted-key.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anson <[email protected]>
1 parent 3a644ec commit e381b1f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/wrapped-keys/src/lib/api/update-encrypted-key.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
*/
1021
export async function updateEncryptedKey(
1122
params: UpdateEncryptedKeyParams
1223
): Promise<UpdateEncryptedKeyResult> {

0 commit comments

Comments
 (0)