Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are address version values for P2WPKH and P2WSH (BIP-142) for Litecoin? #312

Closed
prusnak opened this issue May 4, 2017 · 8 comments
Closed

Comments

@prusnak
Copy link

prusnak commented May 4, 2017

Or does Litecoin only support (non-native) Segwit-in-P2SH?

@shaolinfry
Copy link
Member

We are not using BIP142, we're using BIP173 with ltc1 and tltc1 prefixes

For normal P2SH addresses, we use M prefix now.

@prusnak
Copy link
Author

prusnak commented May 10, 2017

Can you point me to your implementation of BIP173 in the source code? I don't see any Bech32 library using in this source tree, so I really doubt you are using BIP173 yet.

@azuchi
Copy link

azuchi commented May 11, 2017

I understand if ltc, why 1 is included?

@prusnak
Copy link
Author

prusnak commented May 11, 2017

I understand if ltc, why 1 is included?

read bip-173. It is a delimiter of human-readable string and encoded data.

@azuchi
Copy link

azuchi commented May 11, 2017

oh, I see. well then human-redable part is ltc.

@shaolinfry
Copy link
Member

@prusnak We obviously haven't implemented BIP173 in Litecoin Core yet, but it's being implemented already in some LN clients - we with LN devs that Litecoin would use bech32 with ltc1 as the prefix. M and Q addresses for P2SH have been implemented in 0.13.3rc1 and 0.14-dev.

@prusnak
Copy link
Author

prusnak commented May 11, 2017 via email

@shaolinfry
Copy link
Member

When Litecoin was launched, they didnt change the address prefix for P2SH addresses, so still retain the 3 (mainnet) and 2 (testnet) prefixes which has been very confusing and resulted in many people sending BTC to LTC addresses. We have changed this to M for mainnet and Q for testnet (old 3/2 prefixes will continue to work of course). See #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants