top of page
1bggz9tcn4rm9kbzdn7kprqz87sz26samh: Work
import base58 s = "1bggz9tcn4rm9kbzdn7kprqz87sz26samh" decoded = base58.b58decode_check(s) print(decoded.hex())
import base58 import hashlib def b58_decode_check(s): try: decoded = base58.b58decode_check(s) return decoded except: return None 1bggz9tcn4rm9kbzdn7kprqz87sz26samh work
def is_valid_bitcoin_address(s): decoded = b58_decode_check(s) if decoded and len(decoded) == 21 and decoded[0] == 0x00: return True return False 1bggz9tcn4rm9kbzdn7kprqz87sz26samh work
bottom of page