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 https://litecoin-project.github.io/p2sh-convert/ 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


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
  • thank you i will try it and rep you back – redondoxx Feb 12 at 3:10
  • thank you, this should be the answer. – redondoxx Feb 12 at 4:55

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.