Skip to content

Conversation

@saloppe73
Copy link
Contributor

No description provided.

Comment on lines +3216 to +3225
"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,
Copy link
Collaborator

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.

Copy link
Collaborator

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
    })

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

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 :)

@meherett meherett merged commit aeda29b into hdwallet-io:master Jul 24, 2021
meherett added a commit that referenced this pull request Nov 26, 2024
add ZECTEST, fix LTC/LTCTEST

Changed -> Litecoin (LTC) mainnet extend private key from `0x019d9cfe` to `0x488ade4` and public key from `0x019da462` to `0x488b21e` prefixes.
meherett added a commit that referenced this pull request Nov 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants