def METHOD_NAME(self) -> str:
    # Yes, we're using a cryptographic hash here. Cope. [ :) ]
    h = hashlib.new("sha1")
    # This is a TCP mapping.
    h.update("TCP-".encode("utf-8"))
    address = self.get("address") or "*"
    h.update(address.encode("utf-8"))
    port = str(self.port)
    h.update(port.encode("utf-8"))
    host = self.get("host") or "*"
    h.update(host.encode("utf-8"))
    return h.hexdigest()