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

stacks-gen

v0.8.0

Published

Generate all the keys needed for use with Stacks 2.0 Mining and Stacking

Downloads

31

Readme

stacks-gen

Generate all the keys needed for use with Stacks 2.0 Mining and Stacking

prerequisites

You will need to have node.js and npm installed first. Head over to the node.js download page

usage with npx

If npx is not installed, install it first

npm install -g npx

Then you can use this command

npx -q stacks-gen sk --testnet

-q is not required, but it will avoid displaying compilation warnings.

usage with npm

Install the package

npm i -g stacks-gen

Then you can use this command (or other ones, see below for more details on the options)

stacks-gen sk --phrase "pass on the milk or the world will end very very soon"

Example

npx stacks-gen sk

{
  "phrase": "lottery flip yard shrug dog zero finger seven author proud train oppose smooth pipe spider tobacco problem wet evoke excite illness burst upon champion",
  "private": "78a821b4b309f9b38dfcd62c4f55966c20e0ec83414dad7a142dede3686ec26801",
  "public": "034b4862c186a52ea1dc4e85c74a1e3b22050bb25f9e812bc0f185fb11720e837f",
  "stacks": "SPE2VEBT417GSS66RSGC7Z82DT5AQRGKJQJJ9NH6",
  "stacking": "{ hashbytes: 0x1c2db97a204f0ce4c6c660c3fd026e8aabe21395, version: 0x00 }",
  "btc": "13ZzhNGBDdaCKEW1V9vS2Cf6Y7Ac2eHtdD",
  "wif": "L1GFZXR2UKyH9gP9iQGbweTaW5Ab9rTNe2kzB8RSEa695M684vQj"
}
  • phrase: the 12 or 24 word secret phrase (do not not share!)
  • private: the private key to use as seed when running a miner, not used at the moment, but useful to generat other keys (do not not share!)
  • stacks: your Stacks address
  • stacking: the value to use when sending to the stc-stack function on the stacking contract
  • btc: the BTC address you need to fund for mining
  • wif: the Wallet Import Format key to use with bitcoind (this is your BTC private key), where you'll get your stacking rewards (do not not share!)

Command

sk (secret keys)

Options

  • --help: displays the help
  • --phrase "phrase", -p "phrase": provide the secret phrase to use, useful if you already have one
  • --testnet, -t: genereate keys suitable for testnet
  • --version: displays the version
  • --words 12|24, -w 12|24: generate a 12 or 24 words secret phrase

NOTES

As of 9/26/2020, this does not work in the sandbox from the explorer, as the Stacks address used is the one derived for an app, not the one directly from the seed phrase. Once the explorer uses Connect, then this will work.