npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@blockialabs/ssi-wallet-sdk

v2.0.8

Published

Professional TypeScript SDK for HD wallets with secure storage, DID management, and BIP32/BIP39 key derivation. Perfect for mobile apps and browser extensions.

Downloads

33

Readme

SSI Wallet SDK

A comprehensive SDK for managing decentralized identity wallets, providing secure storage, credential management, DID operations, and cryptographic functions for SSI applications.

Installation

npm install @blockialabs/ssi-wallet-sdk

Quick Start

import { WalletManager, SecureWalletStorage, InMemoryStorage } from '@blockialabs/ssi-wallet-sdk';

// Initialize storage and wallet manager
const storage = new InMemoryStorage();
const secureStorage = new SecureWalletStorage(storage);
const walletManager = new WalletManager(secureStorage);

// Create a new wallet
const wallet = await walletManager.createWallet('your-secure-passcode');

// Use the wallet for SSI operations
const didKey = wallet.getDidKey();
const signature = await wallet.signMessage('Hello, SSI!');
const keyProof = await wallet.createKeyProof('https://issuer.example.com', 'nonce-123');

Core Concepts

Wallet Management

The WalletManager handles wallet lifecycle operations:

// Create a new wallet
const wallet = await walletManager.createWallet('passcode123');

// Import existing wallet from mnemonic
const wallet = await walletManager.importWallet(mnemonic, 'passcode123');

// Load existing wallet
const wallet = await walletManager.loadWallet('passcode123');

// Export mnemonic (requires passcode)
const mnemonic = await walletManager.exportMnemonic('passcode123');

Wallet Operations

The Wallet class provides cryptographic operations:

// Sign messages for VC/VP operations
const signature = await wallet.signMessage('message to sign');

// Verify signatures
const isValid = await wallet.verifyMessage('message', signature);

// Generate DID:key identifier
const didKey = wallet.getDidKey();

// Get public key as JWK
const jwk = wallet.getPublicKeyJWK();

// Create key proof for credential issuance (OpenID4VCI)
const keyProof = await wallet.createKeyProof('audience', 'nonce');

Multi-Account Wallets

Derive multiple accounts from a single seed:

// Derive multiple accounts
const accounts = await walletManager.deriveMultipleAccounts('passcode123', 3);

// Each account is a separate wallet instance
accounts.forEach((account, index) => {
  console.log(`Account ${index}: ${account.getDidKey()}`);
});

Activity Tracking

Track wallet activities:

import { ActivityManager, ActivityRepository } from '@blockialabs/ssi-wallet-sdk';

const activityRepo = new ActivityRepository(storage);
const activityManager = new ActivityManager(activityRepo);

// Log activities
await activityManager.createActivity({
  // ...options
});

// Query activities
const activities = await activityManager.getRecentActivities();

Configuration

Customize wallet behavior with configuration options:

const walletManager = new WalletManager(secureStorage, {
  derivationPath: "m/44'/60'/0'/0", // Custom derivation path
  entropySize: 256, // 24-word mnemonic
});

Building

Run nx build ssi-wallet-sdk to build the library.

Running unit tests

Run nx test ssi-wallet-sdk to execute the unit tests via Jest.

Running lint

Run nx lint ssi-wallet-sdk to check if there are lint errors.

See LICENSE.