Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2018 13:47
What would you like to do?
"use strict";
const oldmnemonic = require("electrum-oldmnemonic");
const bitcoin = require("bitcoinjs-lib")
const words = ""
const oldseedhex = oldmnemonic.mn_decode(words.split(' '));
const monacoin = {
messagePrefix: '\x18Monacoin Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
pubKeyHash: 0x32,
scriptHash: 0x37,
wif: 0xB2
const m = bitcoin.HDNode.fromSeedBuffer(Buffer.from(oldseedhex, 'hex'), monacoin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment