A foundational package providing shared wallet functionality for PKP (Programmable Key Pair) signers in the Lit Protocol ecosystem. This package manages public key operations, LIT node connections, and action execution.
yarn add @lit-protocol/pkp-base
import { PKPBase } from '@lit-protocol/pkp-base';
// Initialize PKP Base
const pkpBase = new PKPBase({
controllerAuthSig: authSig,
pkpPubKey: publicKey,
});
// Connect to LIT node
await pkpBase.init();
// Run LIT action
const signature = await pkpBase.runLitAction(dataToSign, 'sign');
- Public key compression and management
- LIT node connection handling
- Session signature management
- LIT action execution
- Debug logging capabilities
Method | Description |
---|---|
init() |
Initialize and connect to LIT node |
runLitAction() |
Execute LIT actions |
runSign() |
Signs a message |