-
Notifications
You must be signed in to change notification settings - Fork 167
add ZECTEST, fix LTC/LTCTEST #19
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
Conversation
| "P2PKH": 0x488ade4, | ||
| "P2SH": 0x488ade4, | ||
| "P2WPKH": None, | ||
| "P2WPKH_IN_P2SH": None, | ||
| "P2WSH": None, | ||
| "P2WSH_IN_P2SH": None | ||
| }) | ||
| EXTENDED_PUBLIC_KEY = ExtendedPublicKey({ | ||
| "P2PKH": 0x019da462, | ||
| "P2SH": 0x019da462, | ||
| "P2WPKH": 0x04b24746, | ||
| "P2WPKH_IN_P2SH": 0x01b26ef6, | ||
| "P2PKH": 0x488b21e, | ||
| "P2SH": 0x488b21e, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works in both P2PKH and P2SH but the standard of Litecoin EPrivateKey is 0x019d9cfe and EPublicKey is 0x019da462.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this on LitecoinMainnet
EXTENDED_PRIVATE_KEY = ExtendedPrivateKey({
"P2PKH": 0x019d9cfe, # 0x488ade4
"P2SH": 0x019d9cfe, # 0x488ade4
"P2WPKH": None,
"P2WPKH_IN_P2SH": None,
"P2WSH": None,
"P2WSH_IN_P2SH": None
})
EXTENDED_PUBLIC_KEY = ExtendedPublicKey({
"P2PKH": 0x019da462, # 0x488b21e
"P2SH": 0x019da462, # 0x488b21e
"P2WPKH": None,
"P2WPKH_IN_P2SH": None,
"P2WSH": None,
"P2WSH_IN_P2SH": None
})There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got the data by the ltc chainparams.
https://github.com/litecoin-project/litecoin/blob/master/src/chainparams.cpp#L132
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, Maybe I will include option to access both extends keys next time. Good Job :)
add ZECTEST, fix LTC/LTCTEST Changed -> Litecoin (LTC) mainnet extend private key from `0x019d9cfe` to `0x488ade4` and public key from `0x019da462` to `0x488b21e` prefixes.
No description provided.