Hi guys!
I’ve been developing a Litecoin wallet website for the past month or so. It is really interesting and fun! But I’m having a bit of a problem. I would like to turn my wallet into one that gives users segwit addresses right out of the box. To my understanding segwit addresses on Litecoin start with an M. I see these kind of addresses on block explorers as well.
I’ve tried to turn my normal Litecoin address starting with an L into a segwit address. This is possible with the command ‘addwitnessaddress’ followed by the Litecoin address. It returns an address starting with an M. But when I enter it in a block explorer, it says it is invalid.
Example:
The legacy Litecoin address: LKpF6eaeeqZm8eYVeeWvhN1PxRXUpPcYtR
The segwit Litecoin address: MDajyEMUJZM4VmCekocJP9WNMvH3Mz7F1f
The private key (in case you would like to test it yourself): T8yfFqeE9cU5eSpAw5enGTErRVGN2AuuWqrn3JSfrVygbTcwqC6a
Does anyone know why this segwit address is invalid?
Cheers!