containsParameter('uuid')) { throw new MissingRpcArgumentException('uuid'); } try { $uuid = Uuid::fromString($rpcRequest->getParameter('uuid')); } catch(InvalidArgumentException) { throw new InvalidRpcArgumentException('uuid'); } try { return $rpcRequest->produceResponse(SigningKeysManager::signingKeyExists($request->getPeer()->getUuid(), $uuid)); } catch(DatabaseOperationException $e) { throw new StandardRpcException('Failed to check the signing key existence', StandardError::INTERNAL_SERVER_ERROR, $e); } } }