Skip to content

Instantly share code, notes, and snippets.

View TheHackitect's full-sized avatar
💭
I may be slow to respond.

Thehackitect TheHackitect

💭
I may be slow to respond.
View GitHub Profile
@TheHackitect
TheHackitect / easy-litecoin-address-from-public-key.py
Created January 9, 2022 09:15 — forked from circulosmeos/easy-litecoin-address-from-public-key.py
Easily generate the litecoin address from the public key using Python (compatible with Python 2 and 3)
#!/usr/bin/env python
# patched from https://bitcoin.stackexchange.com/questions/56923/is-this-how-to-generate-a-bitcoin-address-with-python
# https://en.bitcoin.it/wiki/Protocol_documentation#Addresses
# Adapted to litecoin, following https://bitcoin.stackexchange.com/questions/65282/how-is-a-litecoin-address-generated
import hashlib
import base58
# ECDSA bitcoin Public Key
pubkey = '0450863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b23522cd470243453a299fa9e77237716103abc11a1df38855ed6f2ee187e9c582ba6'