class PrivxJsonRpcMethods extends PrivacyApiGroupJsonRpcMethods {

  @Override
  protected Map<String, JsonRpcMethod> create(
      final PrivacyController privacyController,
      final EnclavePublicKeyProvider enclavePublicKeyProvider) {
    if (getPrivacyParameters().isOnchainPrivacyGroupsEnabled()) {
      return mapOf(new PrivxFindOnChainPrivacyGroup(privacyController, enclavePublicKeyProvider));
    } else {
      return Map.of();
    }
  }

  public  PrivxJsonRpcMethods(
      final BlockchainQueries blockchainQueries,
      final ProtocolSchedule protocolSchedule,
      final TransactionPool transactionPool,
      final PrivacyParameters privacyParameters);

}