Skip to content

Commit 6e76a79

Browse files
committed
chore: copilot feedback
1 parent 3696a35 commit 6e76a79

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/libs/contracts-sdk/src/internal/wrapped-keys/getVincentWrappedKeysAccs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function getVincentWrappedKeysAccs({
3737
pkpEthAddress: delegatorAddress,
3838
signer: ethers.Wallet.createRandom().connect(
3939
new ethers.providers.StaticJsonRpcProvider(LIT_RPC.CHRONICLE_YELLOWSTONE),
40-
), // Read only; signer identity is irrelevant in this code path :),
40+
), // Read only; signer identity is irrelevant in this code path :)
4141
})
4242
).toString();
4343

packages/libs/wrapped-keys/src/lib/api/export-private-key.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export const exportPrivateKey = async ({
2929

3030
const { decryptedData } = await litNodeClient.decrypt({
3131
sessionSigs: delegatorSessionSigs,
32-
ciphertext: ciphertext,
33-
dataToEncryptHash: dataToEncryptHash,
32+
ciphertext,
33+
dataToEncryptHash,
3434
evmContractConditions: JSON.parse(evmContractConditions),
3535
chain: 'ethereum',
3636
});

packages/libs/wrapped-keys/src/lib/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export type GeneratePrivateKeyParams = BaseApiParams &
4343
};
4444

4545
/**
46+
* @property delegatorAddress The Vincent delegator PKP address that is associated with the encrypted private key
4647
* @property generatedPublicKey The public key component of the newly generated keypair
4748
* @property id The unique identifier (UUID V4) of the encrypted private key
4849
*/
@@ -76,7 +77,7 @@ export interface BatchGeneratePrivateKeysResult {
7677
/** Exporting a previously persisted key only requires valid pkpSessionSigs and a LIT Node Client instance configured for the appropriate network.
7778
*
7879
* @extends BaseApiParams
79-
* @property delegatorSessionSigs The Session Signatures produced by the Vincent delegator for authenticating with the Lit network to decrypts the encrypted wrapped key
80+
* @property delegatorSessionSigs The Session Signatures produced by the Vincent delegator for authenticating with the Lit network to decrypt the encrypted wrapped key
8081
* @property id The unique identifier (UUID V4) of the encrypted private key
8182
*/
8283
export type ExportPrivateKeyParams = BaseApiParams & {
@@ -92,6 +93,7 @@ export type ExportPrivateKeyParams = BaseApiParams & {
9293
* @property keyType The algorithm type of the key; this might be K256, ed25519, or other key formats. The `keyType` will be included in the metadata returned from the wrapped keys service
9394
* @property memo A (typically) user-provided descriptor for the encrypted private key
9495
* @property id The unique identifier (UUID V4) of the encrypted private key
96+
* @property litNetwork The Lit network that the client who stored the key was connected to
9597
*/
9698
export interface ExportPrivateKeyResult {
9799
delegatorAddress: string;

0 commit comments

Comments
 (0)