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

eip712_verifier

v1.0.0

Published

A simple utility to calculate EIP-712 message hashes (specifically the Struct Hash) for verifying transactions on Ledger hardware wallets

Downloads

9

Readme

EIP-712 Message Hash Calculator

A simple utility to calculate EIP-712 message hashes (specifically the Struct Hash) for verifying transactions on Ledger hardware wallets (like Nano S or Nano X).

This tool is particularly useful for transactions where the Ledger displays a "Message Hash" during blind signing that needs to be manually verified.

Prerequisites

To run this tool, you need to have the following installed on your system:

  • Node.js: (Version 16 or higher recommended)
  • npm: (Usually comes bundled with Node.js)

Installation

  1. Clone or download this repository.
  2. Navigate to the project directory:
    cd eip712_verifier
  3. Install the required dependencies:
    npm install

Usage

Run the script using node and provide the EIP-712 JSON object as a single string argument.

Option 1: Basic Command

node index.js '<JSON_STRING>'

Option 2: Using npm link

In the project directory, run:

sudo npm link

Now you can call the tool from anywhere using:

eip712_verifier '<JSON_STRING>'

Option 3: Running with npx

You can also run it directly using npx.

npx eip712_verifier '<JSON_STRING>'

How it Works

The tool uses the ethers.js library to parse the EIP-712 typed data. It specifically calculates the Struct Hash of the message portion, as this is the hash displayed by Ledger devices during the blind signing process for EIP-712 messages.

Dependencies

  • ethers: Used for EIP-712 encoding and hashing.

License

This project is released into the public domain under the Unlicense.