coinnxtjs

1.0.1 • Public • Published

coinnxtjs

Simple bip44 derivation of any NXT coin base addresses

Usage

const nxtjs = require('coinnxtjs');
const bitcoin = require('bitcoinjs-lib');
 
//using bip39 mnemonic
const seed = bip39.mnemonicToSeed(mnemonic); // your 12 word bip39 seed
// using bip32 xpriv
const seed = bitcoin.crypto.sha256(BIP32_KEY); // your BIP32 KEY
 
const node = nxtjs.fromSeedBuffer(seed,'BURST');
const master = node.derivePath(`m/44'/30'/0'/0/0`);
 
console.log(master.getAddress())
//prints BURST-xxxx address
console.log(master.getPrivateKey())
//prints the private seed
master.signTransaction(txhex)
//signs a transaction

Readme

Keywords

Package Sidebar

Install

npm i coinnxtjs

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • unibtc