Function lcxx::to_json(license const&, crypto::rsa_key_t const)

Function Documentation

auto lcxx::to_json(license const &license, crypto::rsa_key_t const private_key) -> nlohmann::json

Calculates the signature and generates the output json.

Parameters:
  • license – the license object, which will be serialized

  • private_key – the private key used to create the signature

Returns:

nlohmann::json a json object containing the serialized license and the signature