This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import hashlib | |
import base58 | |
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent | |
def bytetohex(byteStr): | |
return ''.join( [ "%02X" % x for x in byteStr ] ).strip() | |
litecoin = [b"\x30", b"\xb0"] | |
bitcoin = [b"\x00", b"\x80"] |