contrib/testgen/gen_burn_addr.py
def b58decode_chk(v):
    """decode a base58 string, check and remove checksum"""
    result = b58decode(v)
    if result is None:
        print("result is none")
        return None
    print("decode result: ", bytes(result).hex())
    checksumResult = checksum(result[:-4])
    if result[-4:] == checksumResult:
        return result[:-4]
    else:
        print(bytes(result[-4:]).hex(), "\n")
        print("check sum result: ", bytes(checksumResult).hex())
        return None
decode a base58 string, check and remove checksum
decode a base58 string, check and remove checksum
decode a base58 string check and remove checksum
def b58decode_chk(v):
    result = b58decode(v)
    if result is None:
        print("result is none")
        return None
    print("decode result: ", bytes(result).hex())
    checksumResult = checksum(result[:-4])
    if result[-4:] == checksumResult:
        return result[:-4]
    else:
        print(bytes(result[-4:]).hex(), "\n")
        print("check sum result: ", bytes(checksumResult).hex())
        return None
def b58decode_chk ( v ) : result = b58decode ( v ) if result is None : print ( "result is none" ) return None print ( "decode result: " , bytes ( result ) . hex ( ) ) checksumResult = checksum ( result [ : - 4 ] ) if result [ - 4 : ] == checksumResult : return result [ : - 4 ] else : print ( bytes ( result [ - 4 : ] ) . hex ( ) , "\n" ) print ( "check sum result: " , bytes ( checksumResult ) . hex ( ) ) return None
decode a base58 string, check and remove checksum
decode a base58 string check and remove checksum
"""decode a base58 string, check and remove checksum"""
v