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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qubic.org/wallet

v0.2.7

Published

Wallet and key management for the Qubic network — seed generation, identity derivation, transaction signing, and AES-GCM encrypted vault storage.

Readme

@qubic.org/wallet

Wallet and key management for the Qubic network — seed generation, identity derivation, transaction signing, and AES-GCM encrypted vault storage.

Installation

bun add @qubic.org/wallet

Wallet

createWallet(seed)

Creates a wallet from a 55-character seed. Identity and public key are derived eagerly; signing is async.

import { createWallet, generateSeed } from '@qubic.org/wallet'

const seed = generateSeed()
const wallet = createWallet(seed)

console.log(wallet.identity)   // 60-char uppercase Qubic identity
console.log(wallet.publicKey)  // 32-byte Uint8Array

wallet.buildTransfer(params)

Builds and signs a plain QU transfer.

import { toSeed } from '@qubic.org/wallet'
import type { Identity } from '@qubic.org/types'

const wallet = createWallet(toSeed('your55charlowercaseseed...'))
const { encoded, hash, bytes } = await wallet.buildTransfer({
  destination: 'ABCDEF...' as Identity,
  amount: 1_000_000n,       // in QU
  targetTick: tick + 5,
  currentTick: tick,        // optional — throws TickInThePastError if targetTick ≤ currentTick
})

// encoded: Base64 string ready for POST /live/v1/broadcast-transaction
// hash: 60-char lowercase transaction hash
// bytes: raw signed Uint8Array

wallet.buildScTransaction(params)

Builds and signs a smart contract procedure call.

import { qearn } from '@qubic.org/contracts'

const payload = qearn.buildLockInput({ amount: 10_000_000n })

const { encoded } = await wallet.buildScTransaction({
  destination: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' as Identity,
  amount: 10_000_000n,
  targetTick: tick + 5,
  inputType: 6,   // procedure input type
  payload,
})

Seed utilities

import { generateSeed, validateSeed, toSeed } from '@qubic.org/wallet'

const seed = generateSeed()         // cryptographically secure random seed
validateSeed('abc')                 // false
validateSeed(seed)                  // true
toSeed('abc')                       // throws InvalidSeedError
toSeed(seed)                        // returns branded Seed

Vault

Encrypted storage for seeds using AES-256-GCM with PBKDF2-SHA256 key derivation (600k iterations).

import { createVault, unlockVault, addToVault, exportVault, importVault } from '@qubic.org/wallet'

// Create a vault with one or more seeds
const vault = await createVault('strong-password', [seed])

// Decrypt and retrieve seeds
const seeds = await unlockVault(vault, 'strong-password')

// Add a seed to an existing vault
const updated = await addToVault(vault, 'strong-password', anotherSeed)

// Persist to disk / localStorage
const json = exportVault(vault)       // JSON string
const loaded = importVault(json)      // parses and validates structure
const seeds2 = await unlockVault(loaded, 'strong-password')

Vault security

| Property | Value | |---|---| | Cipher | AES-256-GCM | | Key derivation | PBKDF2-SHA256 | | Iterations | 600,000 | | Salt | 16 bytes (random per vault) | | IV | 12 bytes (random per encryption) |

A wrong password or corrupted ciphertext throws VaultDecryptionError. A structurally malformed vault throws InvalidVaultError.

Errors

import { WalletError, VaultDecryptionError, InvalidVaultError } from '@qubic.org/wallet'

| Error | Thrown when | |---|---| | WalletError | Base class for all wallet errors | | VaultDecryptionError | Wrong password or corrupt ciphertext | | InvalidVaultError | Malformed vault structure or unsupported version |

Dependencies