convert "M" address to "3" address LTC

by redondoxx   Last Updated February 11, 2019 03:27 AM - source

currently im facing with 1 issue that i need to convert all my litecoin address in my fullnode to legacy address (prefix with "M"). Im know that we have a tool that can help me solve this, but my system currently dev with java, so im asking there is any convert that wrote by java support me this problem ??

Thank for read

Answers 1

It's pretty simple, to do this conversion all you need to do is:

  1. decode the address using base58check
  2. change the first byte from 0x32 to 0x5
  3. encode using base58check
February 11, 2019 22:18 PM

Related Questions

P2SH to LTC address with M

Updated April 02, 2019 11:27 AM

Is P2SH-wrapped P2PKH possible?

Updated December 22, 2018 06:27 AM