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 🙏

© 2024 – Pkg Stats / Ryan Hefner

quorum-keygen

v1.0.2

Published

Utility to create Quorum (Ethereum) keypairs

Downloads

8

Readme

Quorum Account Keypair Generator

Simple javascript utility to generate

  1. Quorum / Ethereum account key pair JSON's
  2. Quorum / Ethereum Node key pairs

Implements Version 3 of the Web3 secret storage spec

Usage

Install : npm install --save quorum-keygen

Quorum / Ethereum account generation

var quorumKeyGen = require('quorum-keygen');

let quorumKeyPair = quorumKeyGen.newAccount('Pass phrase goes here');

Output :

{
  "address": "eee9b1362a6eee608d56538bd619ba4e9c525022",
  "crypto": {
    "cipher": "aes-128-ctr",
    "ciphertext": "ea7ca8fd9965f1621918ee4875cb3572e11c049014ff34b3e67c3c09ea6ff8bf",
    "cipherparams": {
      "iv": "5c6ff4dbc9dda4b33e74e02c9f99dcd0"
    },
    "kdf": "pbkdf2",
    "kdfparams": {
      "c": 262144,
      "dklen": 32,
      "prf": "hmac-sha256",
      "salt": "38be5505b42344de6426e918442e2e5f1f48b543f74d36640ecabf5f506151fb"
    },
    "mac": "7f4843064ba4424b5385da19c08d7e29ac80ff6b067a1149cdfef8c5e4aeab0e"
  },
  "id": "127587ad-077b-4835-9643-3094702ece74",
  "version": 3
}

Quorum / Ethereum node key pair generation


var quorumKeyGen = require('quorum-keygen');

let nodeKeyPair = quorumKeyGen.generateNodeKeys();

// OR generate public key from a private key in hex

let nodeKeyPair = quorumKeyGen.generateNodeKeys('77bd02ffa26e3fb8f324bda24ae588066f1873d95680104de5bc2db9e7b2e510');

Output :

{
  "privateKey" : "77bd02ffa26e3fb8f324bda24ae588066f1873d95680104de5bc2db9e7b2e510",
  "publicKey" : "61077a284f5ba7607ab04f33cfde2750d659ad9af962516e159cf6ce708646066cd927a900944ce393b98b95c914e4d6c54b099f568342647a1cd4a262cc0423"
}

Acknowledgements

This utility was made possible by the amazing contributions by below libraries and their authors

  1. secp256k1
  2. keccak
  3. uuid