Generate receive and change addresses from xpubs for bitcoin BIP44 BIP49 BIP84

This script will generate lists of addresses from your coldcard xpubs. It will generate external (receive) and internal (change) addresses. You will get those values from the public.txt file that you can export from the coldcard.
Insert a SD-Card into your coldcard, then: Advanced -> MicroSD Card ->Dump summary
Open public.txt and get the xpubs from these sections: :

## For BIP44 / Electrum: m/44'/0'/{account}'/{change}/{idx}
## For BIP49 (P2WPKH-nested-in-P2SH): m/49'/0'/{account}'/{change}/{idx}
## For BIP84 (Native Segwit P2PKH): m/84'/0'/{account}'/{change}/{idx}


For testing and cross-checking the addresses here are for the mnemonic:
abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about

You could use https://iancoleman.io/bip39/ for comparison.
For BIP49 and BIP84 this tool only provides the ypub and zpub (account extended key),
you can use https://jlopp.github.io/xpub-converter/ to convert them to xpubs (choose xpub mainnet) and paste a ypub or zpub in the field below.

Number of addresses (max 1000):


Paste you BIP44 xpub (m/44'/0'/0') here:





Paste you BIP49 xpub (m/49'/0'/0') here:





Paste you BIP84 xpub (m/84'/0'/0') here:





        

More about this software:
https://github.com/peli-pro/coldcard_address_generator

Libraries used:
bitcoinjs-lib https://github.com/bitcoinjs/bitcoinjs-lib
bip32 https://github.com/bitcoinjs/bip32

Licence
MIT License
Copyright (c) 2019 peli-pro
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.