async fn authenticate_qp( text: &str, state: &QpWsState, gateway_resume_authorized: bool, ) -> Result<WalletAddress, String>