Skip to content

Instantly share code, notes, and snippets.

const bitcoinjs = require('bitcoinjs-lib') // @3.3.2
const bip39 = require('bip39')
const clone = require('lodash.clonedeep')
const networks = bitcoinjs.networks
const script = bitcoinjs.script
/*
Bitcoin 0x0488b21e - xpub 0x0488ade4 - xprv P2PKH or P2SH
Bitcoin 0x049d7cb2 - ypub 0x049d7878 - yprv P2WPKH in P2SH

Keybase proof

I hereby claim:

  • I am masterdpool on github.
  • I am wagnercom (https://keybase.io/wagnercom) on keybase.
  • I have a public key ASASNt8aocy1M2HCovmLO8Utuxd82_5pLSB5O3fQeUS-1go

To claim this, I am signing this object: