Skip to content

Commit 3b3967a

Browse files
committed
fix(lit-client): fix utils type
1 parent 1fc4b6b commit 3b3967a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/lit-client/src/lib/LitClient/types/NagaLitClient.type.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ export interface NagaLitClient extends BaseLitClient<NagaLitClientContext> {
120120
* @returns Promise resolving to the current client context
121121
*/
122122
getContext: () => Promise<NagaLitClientContext>;
123+
/**
124+
* Utility helpers for interacting with network-level resources
125+
*/
126+
utils: {
127+
/**
128+
* Resolves the derived public key for a given derived key identifier
129+
* @example
130+
* ```ts
131+
* import { keccak256, stringToBytes } from 'viem';
132+
* const derivedKeyId = keccak256(stringToBytes(`lit_action_${IPFS_CID}`));
133+
* ```
134+
*/
135+
getDerivedKeyId: (derivedKeyId: string) => Promise<string>;
136+
};
123137

124138
/**
125139
* Gets chain configuration including Viem config and RPC URL

0 commit comments

Comments
 (0)