(thehash)
return '$' + b2a_hex(b64decode(thehash + '=')).decode('ascii').upper()
From the base-64 encoded hashes Tor uses, this produces the longer
    hex-encoded hashes.

    :param thehash: base64-encoded str
    :return: hex-encoded hash
From the base-64 encoded hashes Tor uses, this produces the longer
    hex-encoded hashes.
From the base - 64 encoded hashes Tor uses this produces the longer hex - encoded hashes .
def hexIdFromHash(thehash):
    """
    From the base-64 encoded hashes Tor uses, this produces the longer
    hex-encoded hashes.

    :param thehash: base64-encoded str
    :return: hex-encoded hash
    """
    return '$' + b2a_hex(b64decode(thehash + '=')).decode('ascii').upper()
def hexIdFromHash ( thehash ) : return '$' + b2a_hex ( b64decode ( thehash + '=' ) ) . decode ( 'ascii' ) . upper ( )