Open Burtonium opened 7 years ago
Did you solve this issue?
The master and segwit branch are using old base58 prefixes, you can use branch v5.0 https://github.com/litecoin-project/litecore-lib/tree/v5.0 (not published to npm yet)
Or modify xpubkey
xprivkey
in lib/networks.js
back to 0x0488b21e
and 0x0488ade4
.
i published the branch to npm as 'litecore-lib-v5' since this repo seems dead
litecore-lib-v5
Yo you are a life save literally!
litecore-lib-v5
You saved me! xpub and xprv works great!
Please do not use this in production. BitPay is soon releasing a significantly updated version of this repo as part of the Bitcore stack with LTC support. This repo will be archived very soon.
On Thu, 20 May 2021 at 01:26, red-name @.***> wrote:
litecore-lib-v5
You saved me! xpub and xprv works great!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/litecoin-project/litecore-lib/issues/5#issuecomment-844587652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OTCGQS6QESKBCQRIRLTORJMXANCNFSM4DSAHRHQ .
The following code fails:
Giving me this error:
AssertionError: version argument is not a buffer at checkBuffer (/home/burton/depositor/node_modules/litecore-lib/lib/hdprivatekey.js:523:5) at Function.HDPrivateKey._validateBufferArguments (/home/burton/depositor/node_modules/litecore-lib/lib/hdprivatekey.js:529:3) at HDPrivateKey._buildFromBuffers (/home/burton/depositor/node_modules/litecore-lib/lib/hdprivatekey.js:461:16) at HDPrivateKey._buildFromObject (/home/burton/depositor/node_modules/litecore-lib/lib/hdprivatekey.js:376:15) at new HDPrivateKey (/home/burton/depositor/node_modules/litecore-lib/lib/hdprivatekey.js:61:10) at Object.<anonymous> (/home/burton/depositor/index.js:5:14) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12)
Any work arounds for this?