Is there any list of litecoin constants available? Something like Bitcoin list of address prefixes
Here is what I've gathered so far regarding the different version bytes for each type of Litecoin public address:
Mainnet:
- p2pkh L-address (
LM2WMpR1Rp6j3Sa59cMXMs1SPzj9eXpGc1
):0x30
- p2sh deprecated 3-address (
3MSvaVbVFFLML86rt5eqgA9SvW23upaXdY
):0x05
(same as bitcoin's mainnet p2sh) - p2sh new M-address (
MTf4tP1TCNBn8dNkyxeBVoPrFCcVzxJvvh
):0x32
Testnet:
- p2pkh m- or n-address (
mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn
):0x6f
(same as bitcoin's testnet p2pkh) - p2sh deprecated 2-address (
2N2PJEucf6QY2kNFuJ4chQEBoyZWszRQE16
):0xc4
- p2sh new Q-address (
QVk4MvUu7Wb7tZ1wvAeiUvdF7wxhvpyLLK
):0x3a
This is the Litecoin project's converter between old and new p2sh address format. And this is an online base58check decoder to check the version byte.
L - Legacy, Non-P2SH (Pay to script hash) address prefix
3 - P2SH prefix that's backwards compatible to the M prefix. When I say backwards compatible, I mean that there is a 3 address and an M address that point to the same address (Reference: https://blog.trezor.io/litecoins-new-p2sh-segwit-addresses-843633e3e707)
M - Current P2SH address prefix
Litecoin WIF Prefixes: 6 (0x36) and 7 (0x37)
-
1
-
Sure - I just added the WIF prefixes (including hex) to my above answer – Cory Benjamin Nov 16 '17 at 10:17