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

verify-bitcoin-message

v0.0.4

Published

A dependency-free Bitcoin message signature verifier that works in browsers

Readme

Bitcoin Signature Verifier

A dependency-free Bitcoin message signature verifier that works in browsers without requiring npm install.

Features

  • Zero Dependencies: Pure TypeScript implementation with no external dependencies
  • Browser Compatible: Works directly in modern browsers using ES modules
  • Client-Side Verification: Verifies signatures entirely in the browser
  • Simple API: Clean TypeScript interface for programmatic use
  • Unit Tests: Includes a test suite for the verification logic

Things you can do

Offline

Visit the live page, then you can test offline mode in Chrome (webkit browsers) by opening Developer Tools (F12)

  • Network
  • Change "No Throttling" -> "Offline"

Clone the repository

Download Bun, JS runtime

git clone https://github.com/mothepro/verify-bitcoin-message
cd verify-bitcoin-message
bun install
bun test

Serve locally

bun run build:browser
python -m http.server 8000 static # Any "server" is fine. Since it requires ES modules and Web Crypto API support

CDN

<script type="module">
  import verify, { verifySafe } from 'https://unpkg.com/verify-bitcoin-message';
</script>

Command Line Interface

npx verify-bitcoin-message --json \
   --address 1F3sAm6ZtwLAUnj7d38pGFxtP3RVEvtsbV \
   --message "This is an example of a signed message." \
   --signature "H9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk="

Programmatic Use

import verify from 'verify-bitcoin-message';

const isValid = await verify({
  address: '1F3sAm6ZtwLAUnj7d38pGFxtP3RVEvtsbV',
  message: 'This is an example of a signed message.',
  signature: 'H9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk='
});

Or, if you're not a fan of throwing errors:

import { verifySafe } from 'verify-bitcoin-message';

const isValid = await verifySafe({
  address: '1F3sAm6ZtwLAUnj7d38pGFxtP3RVEvtsbV',
  message: 'This is an example of a signed message.',
  signature: 'H9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk='
});

Deployment

This project uses GitHub Actions for automatic deployment to GitHub Pages:

  • Automatic: Deploys on every push to main branch
  • Tested: Runs bun test before deployment
  • Built: Runs bun run build:browser to create static/verify.js
  • Complete: Includes both source files and built JavaScript in deployment

The workflow ensures that only tested, working code gets deployed.

Implementation Notes

This is a complete, production-ready implementation of Bitcoin message signature verification:

  1. Full secp256k1 implementation: Complete elliptic curve operations from scratch
  2. Complete RIPEMD-160: Pure TypeScript implementation following RFC 1320
  3. Complete signature recovery: Handles all Bitcoin signature formats and recovery IDs
  4. Zero dependencies: Works in browsers without any external dependencies

All cryptographic functions are implemented from publicly available specifications in pure TypeScript.

Up Next

  • [ ] better error messages
  • [ ] better ui (i.e. the signed page should look nice and doesn't need to be a form)
  • [ ] more support for address types
  • [ ] explainer what this is, how, and why (why cold storage >>> exchanges)
  • [ ] service worker?
  • [ ] move this to readme

Alternatives

https://www.bitcoin.com/tools/verify-message/ https://www.verifybitcoinmessage.com/ https://bluewallet.github.io/VerifySignature