@lit-protocol/pkp-base
TypeScript icon, indicating that this package has built-in type declarations

7.2.3 • Public • Published

PKP Base

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.

Installation

yarn add @lit-protocol/pkp-base

Quick Start

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');

Key Features

  • Public key compression and management
  • LIT node connection handling
  • Session signature management
  • LIT action execution
  • Debug logging capabilities

Core Methods

Method Description
init() Initialize and connect to LIT node
runLitAction() Execute LIT actions
runSign() Signs a message

Readme

Keywords

Package Sidebar

Install

npm i @lit-protocol/pkp-base

Weekly Downloads

2,003

Version

7.2.3

License

MIT

Unpacked Size

30.1 kB

Total Files

8

Last publish

Collaborators

  • glitch003
  • adarsh-kumar28
  • websaam
  • hwrdtm
  • famura
  • maximushaximus
  • spacesailor
  • awisniew