@@ -22,7 +22,7 @@ import { SessionSigsMap } from '@lit-protocol/types';
2222
2323/**
2424 * Generates a batch of private keys and optionally signs messages.
25- *
25+ *
2626 * @param {Object } params - Parameters for generating keys and signing messages.
2727 * @param {string } params.pkpPublicKey - The public key for the PKP (e.g., "0x123...").
2828 * @param {string } params.ipfsId - The IPFS ID (e.g., "Qm...").
@@ -31,9 +31,9 @@ import { SessionSigsMap } from '@lit-protocol/types';
3131 * @param {string } params.authMethod.accessToken - The access token (e.g., "eyJ...").
3232 * @param {Object } params.litNodeClient - The Lit Node client instance.
3333 * @param {Array } params.actions - The actions to perform.
34- *
34+ *
3535 * @returns {Promise<BatchGeneratePrivateKeysResult> } - The generated keys and optionally signed messages.
36- *
36+ *
3737 * @throws {Error } - Throws an error if required parameters are missing or if the Lit Action Session Sigs cannot be retrieved.
3838 */
3939export async function triaBatchGeneratePrivateKeys (
@@ -56,7 +56,9 @@ export async function triaBatchGeneratePrivateKeys(
5656 throw new Error ( `Error: ipfsId is required` ) ;
5757 }
5858
59- let pkpPubKey = params . pkpPublicKey . startsWith ( '0x' ) ? params . pkpPublicKey . slice ( 2 ) : params . pkpPublicKey ;
59+ let pkpPubKey = params . pkpPublicKey . startsWith ( '0x' )
60+ ? params . pkpPublicKey . slice ( 2 )
61+ : params . pkpPublicKey ;
6062
6163 const pkpPubkeyBuffer = Buffer . from ( pkpPubKey , 'hex' ) ;
6264 const pkpEthAddress = computeAddress ( pkpPubkeyBuffer ) ;
0 commit comments