Skip to content

Commit 879233c

Browse files
committed
fmt
1 parent 45bbde7 commit 879233c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/wrapped-keys/src/lib/api/tria-batch-generate-private-keys.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
3939
export 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

Comments
 (0)