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

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

When mining with 2 computers, do I need to use 2 separate wallets addresses?