How to get xpriv and xpub from keyPair with bitcoinjs-lib

How to get xpriv and xpub from keyPair with bitcoinjs-lib

I have this code:

const bitcoin = require('bitcoinjs-lib');
const keyPair = bitcoin.ECPair.makeRandom({ });

Question: how do I get xpriv and xpub from keyPair

https://ift.tt/2P2l0nf

Comments

Popular posts from this blog

Tor proxy on Electrum, what does Port: 9150 and 9050 mean?

Lightning network (lnd): What's the best way to report lnd server issues/ask for help with channels that won't close?

Is there any python library could be used to decodescript in output