-
-
Save you21979/4d036c3c4e85db91d4b56450a357e952 to your computer and use it in GitHub Desktop.
litecoin bip32 key(Ltpv) to bitcoin bip32 key(xprv)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bitcoin = require("bitcoinjs-lib") | |
const xprv = "" | |
const m = bitcoin.HDNode.fromBase58(xprv, bitcoin.networks['litecoin']) | |
m.keyPair.network = bitcoin.networks['bitcoin'] | |
console.log(xprv) | |
console.log(m.toBase58()) | |
console.log(m.neutered().toBase58()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment