You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'feature/jss-132-naga-test-allow-naga-local-configuration' of https://github.com/LIT-Protocol/js-sdk into feature/jss-132-naga-test-allow-naga-local-configuration
Copy file name to clipboardExpand all lines: docs/changelog.mdx
+39-30Lines changed: 39 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ rss: true
6
6
7
7
| Package | Latest version | Summary |
8
8
| ------- | -------------- | ------- |
9
-
|[@lit-protocol/lit-client](#lit-client)|[8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Flit-client)|Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
9
+
|[@lit-protocol/lit-client](#lit-client)|[8.2.0](https://www.npmjs.com/package/%40lit-protocol%2Flit-client)|LitClient now offers `getIpfsId` via `@lit-protocol/lit-client/ipfs`, letting apps compute CIDv0 hashes (e.g., `await getIpfsId('hello')`) while keeping bundles lean. |
10
10
|[@lit-protocol/auth](#auth)|[8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fauth)| Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
11
-
|[@lit-protocol/networks](#networks)|[8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fnetworks)|Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.|
|[@lit-protocol/networks](#networks)|[8.2.0](https://www.npmjs.com/package/%40lit-protocol%2Fnetworks)|introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime|
|[@lit-protocol/auth-helpers](#auth-helpers)|[8.1.0](https://www.npmjs.com/package/%40lit-protocol%2Fauth-helpers)| Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually. |
|[@lit-protocol/contracts](#contracts)|[0.6.0](https://www.npmjs.com/package/%40lit-protocol%2Fcontracts)|Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.|
|[@lit-protocol/contracts](#contracts)|[0.7.0](https://www.npmjs.com/package/%40lit-protocol%2Fcontracts)|introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime|
|[@lit-protocol/e2e](#e2e)|[3.0.0](https://www.npmjs.com/package/%40lit-protocol%2Fe2e)|introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime|
rss={{ title: "lit-client", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
32
+
rss={{ title: "lit-client", description: "LitClient now offers `getIpfsId` via `@lit-protocol/lit-client/ipfs`, letting apps compute CIDv0 hashes (e.g., `await getIpfsId('hello')`) while keeping bundles lean." }}
33
33
id="lit-client"
34
34
>
35
35
36
36
## Minor Changes
37
37
38
-
- Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
38
+
- LitClient now offers `getIpfsId` via `@lit-protocol/lit-client/ipfs`, letting apps compute CIDv0 hashes (e.g., `await getIpfsId('hello')`) while keeping bundles lean.
- introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime
39
44
</Update>
40
45
41
46
<Update
@@ -57,25 +62,25 @@ rss: true
57
62
58
63
<Update
59
64
label="networks"
60
-
description="v8.1.0"
65
+
description="v8.2.0"
61
66
tags={["Minor Changes", "Patch Changes"]}
62
-
rss={{ title: "networks", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
67
+
rss={{ title: "networks", description: "introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime" }}
63
68
id="networks"
64
69
>
65
70
66
71
## Minor Changes
67
72
68
-
-Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
73
+
- introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime
rss={{ title: "contracts", description: "Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually." }}
162
+
rss={{ title: "contracts", description: "introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime" }}
157
163
id="contracts"
158
164
>
159
165
160
166
## Minor Changes
161
167
162
-
-Converted viem from a bundled dependency to a peer dependency to avoid build errors from version conflicts (e.g., missing exports like sendCallsSync) and improve compatibility by reducing dependency lock-in. Consumers must now install compatible versions manually.
168
+
- introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime
rss={{ title: "e2e", description: "introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime" }}
181
187
id="e2e"
182
188
>
183
189
190
+
## Minor Changes
191
+
192
+
- introduce `litClient.utils.getDerivedKeyId` - a little helper to resolve the Lit Action public key outside of the Action runtime
| LITKEY | Base |[0xF732A566121Fa6362E9E0FBdd6D66E5c8C925E49](https://basescan.org/address/0xF732A566121Fa6362E9E0FBdd6D66E5c8C925E49)| Bridged to Base using canonical bridge, Hyperlane supported |
14
+
| LITKEY | Arbitrum One |[0xC7603786470F04D33E35f9E9B56bD0Ca8803fB95](https://arbiscan.io/address/0xC7603786470F04D33E35f9E9B56bD0Ca8803fB95)| Bridged to Arbitrum One using canonical bridge, Hyperlane supported |
15
+
| LITKEY | Optimism |[0x0633E91f64C22d4FEa53dbE6e77B7BA4093177B8](https://optimistic.etherscan.io/address/0x0633E91f64C22d4FEa53dbE6e77B7BA4093177B8)| Bridged to Optimism using canonical bridge, Hyperlane supported |
Lit Chain is an Arbitrum Orbit-based L3 rollup that acts as the shared state layer for Lit Protocol.
8
+
9
+
## Connecting to Lit Chain
10
+
11
+
<AddLitChainButton />
12
+
13
+
To connect to Lit Chain, you can click the button above or manually add the network parameters below. For production use cases, you should get a free private RPC URL from Conduit by clicking "Get an API Key" on the [Lit Chain hub page](https://hub.conduit.xyz/lit-chain-1rw3jdu82h).
14
+
15
+
<Note>
16
+
The below and additional chain parameters are available [here](https://hub.conduit.xyz/lit-chain-1rw3jdu82h).
This approach keeps the derivation entirely within the Lit Action context. Because the public key depends only on the Action CID and signing scheme, you can rely on `Lit.Actions.getActionPublicKey` for a deterministic identity without needing to execute the Action externally first.
72
+
73
+
## Derive the Same Public Key from Client Code
74
+
75
+
If you prefer to resolve the Lit Action public key outside of the Action runtime - e.g., inside tests or other tooling—the SDK now exposes a helper that calls the on-chain PubkeyRouter contract.
Under the hood, `getDerivedKeyId` routes through `PubkeyRouter.getDerivedPubkey`, passing the staking contract address and the default Naga key set (`naga-keyset1`) (will be dynamic in the future). This mirrors the same key derivation the nodes perform, letting you confirm identities or signatures without re-running the Lit Action.
> Note: this helper currently calls `PubkeyRouter.getDerivedPubkey` with the default Naga key set (`naga-keyset1`). See the [Derive Lit Action Public Keys guide](../../../../guides/lit-action-sign-as-action) for an end-to-end workflow.
1075
+
1049
1076
### getChainConfig
1050
1077
1051
1078
Returns the chain configuration for the current network.
@@ -1074,4 +1101,4 @@ Stop background state updates and release resources.
description: Generate CIDv0 hashes with the Lit Client IPFS helper
4
+
---
5
+
6
+
## Overview
7
+
8
+
`getIpfsId` is an optional helper exported via `@lit-protocol/lit-client/ipfs`. It produces CIDv0 IPFS identifiers identical to the Lit SDK v7 utility while remaining fully tree-shakeable from the main client bundle.
| input |`string \| Uint8Array \| ArrayBuffer \| ArrayBufferView`| Source content to hash. Strings are UTF-8 encoded automatically; buffers and typed views are accepted directly. |
28
+
29
+
## Returns
30
+
31
+
```
32
+
// A CIDv0 string beginning with Qm
33
+
Promise<Qm${string}>
34
+
```
35
+
36
+
## Notes
37
+
38
+
- The helper delegates to the same hashing routine used in v7 (`typestub-ipfs-only-hash`) and can be imported without pulling the entire Lit Client into your bundle.
39
+
- Binary payloads do not need to be stringified first—pass any `Uint8Array`, `ArrayBuffer`, or typed view directly and the helper will normalize it before hashing.
0 commit comments