The Lit SDK v3 is Live
The latest version of the Lit SDK, v3, is now live.
The latest version of the Lit SDK, v3, is now live! The v3 SDK is now the default for developers building on Lit, providing significant improvements to the overall developer experience and optimizations to encryption and signing.
The release of v3 is a critical precursor to the launch of the Habanero network, also known as the mainnet beta. In order to use Habanero, you’ll need to ensure your app is compatible with the v3 SDK (SDKs v1 and v2 will not be supported on any new network releases going forward).
Read on to learn about the new features that have been introduced and critical upgrade and migration instructions.
Key Feature Updates and Additions
Lit now uses an identity-based encryption scheme to encrypt data (based off of this academic research). This offers the same access control functionality as before, but it is much more scalable and secure. The core difference with ID encrypt is that only decryption requires communicating with the Lit nodes, whereas encryption becomes an entirely client-side operation. Read more here.
What if you could send funds to a Discord user before they've created a wallet in the first place? Or to a friend or family member using nothing but their e-mail account?
Lit’s new claimable keys feature allows you to do exactly that, using the authentication method presented to deterministically derive a wallet.
- Support for new ECDSA curves including
- A new BLS DKG algorithm
The BLS distributed key generation (DKG) process used to generate Lit encryption keys got an upgrade! The process now uses the Gennaro protocol, which is more secure, simpler to implement, and generalizable across various curve types. Soon the ECDSA DKG algorithm (used to generate PKPs) will be updated to use the same Gennaro protocol as well.
- Miscellaneous
Various improvements to network consensus, resiliency, and node scaling.
Feature matrix
Shown below is a matrix illustrating which features are available with each SDK version and network.
V1 refers to the deprecated lit-js-sdk
V2 refers to 2.x.x
versions of js-sdk
V3 refers to 3.x.x
versions of js-sdk
FEATURE | V1 | V2 | V3 |
---|---|---|---|
jalapeno network | ✅ | ✅ | ❌ |
serrano network | ✅ | ✅ | ❌ |
cayenne network | ❌ | ❌ | ✅ |
manzano network (decentralized testnet) | ❌ | ❌ | ✅ |
habanero network (mainnet beta) | ❌ | ❌ | ✅ |
ACC-based Encryption | ✅ | ✅ | ✅ |
ACC-based JWT signing | ✅ | ✅ | ✅ |
Updateable ACC | ✅ | ✅ | ❌ |
Programmable Key Pairs | ❌ | ✅ | ✅ |
Lit Actions | ❌ | ✅ | ✅ |
Wallet Signatures | ✅ | ✅ | ✅ |
Session Signatures | ✅ | ✅ | ✅ |
Supported Lit Networks
You can use the v3 SDK to connect to the following Lit networks:
Name | Description | Curve | Status | SDK | Persistent? |
---|---|---|---|---|---|
Cayenne | Centralized testnet | BLS, ECDSA | Live | v3 | No |
Manzano | Decentralized testnet | BLS, ECDSA | Coming soon | v3 | Yes |