litecoin constants and prefixes

3

1

Is there any list of litecoin constants available? Something like Bitcoin list of address prefixes

Oskyk

Posted 2017-11-16T08:15:00.313

Reputation: 182

Answers

6

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.

Thalis K.

Posted 2017-11-16T08:15:00.313

Reputation: 231

2

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)

Cory Benjamin

Posted 2017-11-16T08:15:00.313

Reputation: 306

1do you also know the prefixes for WIF and the hex values?blues 2017-11-16T09:48:03.893

Sure - I just added the WIF prefixes (including hex) to my above answerCory Benjamin 2017-11-16T10:17:40.223