Private Key To Litecoin
convert private key hex to all address type litecoin
from cryptofuzz import Litecoin
# private key hex
privatekey = "db6fae9db7f5314e1249390b8e38a91a6dff98c655f25a6bf01f8619f2b70e65"
# class litecoin
ltc = Litecoin()
p2pkh_address = ltc.hex_addr(privatekey, 'p2pkh')
p2sh_address = ltc.hex_addr(privatekey, 'p2sh')
p2wpkh_address = ltc.hex_addr(privatekey, 'p2wpkh')
p2wsh_address = ltc.hex_addr(privatekey, 'p2wsh')
p2wpkh_p2sh_address = ltc.hex_addr(privatekey, 'p2wpkh_p2sh')
p2wsh_p2sh_address = ltc.hex_addr(privatekey, 'p2wsh_p2sh')
print(f"P2PKH: {p2pkh_address}")
print(f"P2SH: {p2sh_address}")
print(f"P2WPKH: {p2wpkh_address}")
print(f"P2WSH: {p2wsh_address}")
print(f"P2WPKH_P2SH: {p2wpkh_p2sh_address}")
print(f"P2WSH_P2SH: {p2wsh_p2sh_address}")P2PKH: LMbt6yuKK9j2qoatLMJA4Lw1myZfuAsSrj
P2SH: MGokVfCkQCwoDamYzRTBtgGksmHsNdu4ma
P2WPKH: ltc1qrg27uj6c3l2u2k3yafjtll7y7h5qemh4jyk9mz
P2WSH: ltc1qes324tgq90x4y39skfcpn3tgjzchmg5cd9efaep5fl64vsw38qsqfx8rzh
P2WPKH_P2SH: MErcURf9DaSPEZszBNpbypMLyLGQSqK2rD
P2WSH_P2SH: M9N4poC6oMNaXaB3sPUZJiABW2T2n4MbivGenerating Various Litecoin Address Formats with Python
Last updated