Function make_module_result

Constructs a Module Result

Note: This is typically only used by external cryptographic library calls so that it mimics our underlying library call results

The string returned should always be a raw type, whether it be a string, a number, or an object as expected by the module.

If you are using external libraries for the underlying cryptographic library, it is highly recommended that you read the source code of this module to make sure that you are returning a result of the proper structure.

This method will JSON.stringify() whatever result you supply so that our module understands it within it's private execute() method

  • Type Parameters

    • ResultType = string

    Parameters

    • error: boolean
    • result: ResultType
    • Optionalerror_message: string

    Returns string