def METHOD_NAME(self) -> None:
    if not self.secure_socket:
        raise AttributeError("Provided server_curve_vk for a secure socket connection.")
    self.socket.curve_secretkey = self.local_wallet.curve_sk
    self.socket.curve_publickey = self.local_wallet.curve_vk
    self.socket.curve_serverkey = self.server_curve_vk
    self.socket.identity = encode(self.id).encode()