This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(networks): BIP32 constants for litecoin
Litecoin in fact has the same BIP32 prefixes (xpub/xprv, tpub/tprv) as all other utxo coins. This error was introduced in bitcoinjs-lib and propagated to `cryptocoinjs/coininfo`, where a similar fix is pending: https://github.com/cryptocoinjs/coininfo/pull/76/files It is unclear what the source for the incorrect values was originally. Litecoin Mainnet: https://github.com/litecoin-project/litecoin/blob/1b6c480/src/chainparams.cpp#L142-L143 Litecoin Testnet: https://github.com/litecoin-project/litecoin/blob/1b6c480/src/chainparams.cpp#L249-L250 * Add `getDefaultBip32Mainnet()` and `getDefaultBip32Testnet()` to make shared values more obvious. * Modify tests fixtures and tests which previously assumed bip32-exported coins have different prefixes. BREAKING CHANGE: While this is a breaking change, I don't think these values were actually used anywhere. Issue: BG-16466
- Loading branch information
1 parent
b08089a
commit 69d0244
Showing
5 changed files
with
57 additions
and
89 deletions.
There are no files selected for viewing
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
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
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
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
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