(contents)
return b
Serializes a hexadecimal string as binary and confirms that it's 128 bits
Serializes a hexadecimal string as binary and confirms that it's 128 bits
Serializes a hexadecimal string as binary and confirms that it s 128 bits
def hash128_to_bytes(contents):
    """
    Serializes a hexadecimal string as binary and confirms that it's 128 bits
    """
    b = hash_to_bytes(contents)
    if len(b) != 16: # 16 bytes = 128 bits
        raise ValueError("Hash128 is not 128 bits long")
    return b
def hash128_to_bytes ( contents ) : b = hash_to_bytes ( contents ) if len ( b ) != 16 : # 16 bytes = 128 bits raise ValueError ( "Hash128 is not 128 bits long" ) return b