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

cryptohdwallet

v1.2.2

Published

a simple way to generate a bip-44 standard HD crypto wallet

Downloads

15

Readme

CryptoHDWallet

This project is a HD wallet address generator with private and public key separated.

It can be used to generate multiple kinds of cryptocurrency address without exposing the private key.

It's a HD wallet, you only need to remember one mnemonic.

This project complies with the relevant specifications of BIP-44

Supported cryptocurrency

BTC , ETH , BCH , SLP , BSV , DASH , LTC , DOGE , EOS , XRP , NAV , STRAT

Current stage

#1 Can generate multiple kinds of cryptocurrency address from public key.

->Complete

#2 Can use this package for transactions, private key management and other functions

->In develop

#3 Cold wallet

->In Imagine

Getting Started

Install

$   npm i --save cryptohdwallet

Add script to your package.json file

"scripts": {
    "init-wallet": "crypto-hdwallet init"
},

Initialize with CLI Tool

Run the init command in your project directory:

$   npm run init-wallet

The cli tool will help you setup a crypto-root-keys.json file in the root directory of your project.

Usage

example:

var cryptohdwallet = require('cryptohdwallet');

// number of the address derived from root, should be lower than 2^31
var count = 0;

// you should define your coin symbol at upper case
var mainBTCAddress = cryptohdwallet.getAddress('BTC', count,'main');
var changeBTCAddress = cryptohdwallet.getAddress('BTC', count,'change');

console.log(mainBTCAddress);
// => '19rF4MDgHLcqMUWBqPEPQgZ65cz549h9CX'
console.log(changeBTCAddress);
// => '13CmhUZ27p5Z26P6ELBmTsrxUTkafxLmDT'

// ethereum has no change address, you should always use 'main' as type
var ETHAddress = cryptohdwallet.getAddress('ETH', count,'main');

console.log(ETHAddress);
// => '0xF444640DE9531335eFC535147b131343c74258d0'

Useful Link

  • https://github.com/cryptocoinjs/hdkey/tree/3f3c0b5cedb98f971835b5116ebea05b3c09422a
  • https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
  • https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
  • https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
  • https://iancoleman.io/bip39/

License

MIT