Function smc_verifiable_plugins::loadPlugin

Function Documentation

std::unique_ptr<SmcPluginBase> smc_verifiable_plugins::loadPlugin(const std::filesystem::path &plugin_folder, const std::string &plugin_name)

Function to load an external SMC plugin based on its parent folder path and its name.

Parameters:
  • plugin_folder – The path to the folder containing the plugin library.

  • plugin_name – The name of the plugin instance to load. The library name and the plugin name are expected to match.

Returns:

A unique_ptr containing an instance of the loaded plugin, or a nullptr if loading was not possible.