Offline Transaction Signing (OTS) 0.1.0
|
#include "ots.h"
#include "ots.hpp"
#include "ots-exceptions.hpp"
#include <cstring>
#include <memory>
Functions | |
void | ots_error_init (ots_error_t *error) |
Initialize error structure. | |
bool | ots_is_error (const ots_result_t *result) |
Check if result contains an error. | |
bool | ots_has_error (const ots_result_t *result) |
Check if result contains an error. | |
ots_result_t | ots_get_last_error (void) |
Get error message for last error. | |
ots_result_t | ots_get_error_message (int32_t error_code) |
Get error message for specific error code. | |
void | ots_clear_error (void) |
Clear last error state. | |
void | ots_free_string (char *str) |
Free a string allocated by the library. | |
void | ots_free_array (void *arr) |
Free an array allocated by the library. | |
void | ots_free_handle (ots_handle_t handle) |
Free a handle. | |
void | ots_wipeable_string_free (ots_wipeable_string_t *str) |
Free a wipeable string, securely wiping memory. | |
void | ots_seed_indices_free (ots_seed_indices_t *indices) |
Free seed indices, securely wiping memory. | |
void | ots_free_tx_description (ots_tx_description_t *desc) |
Free transaction description. | |
ots_result_t | ots_version (void) |
Get library version string. | |
ots_result_t | ots_version_components (void) |
Get version components [major, minor, patch]. | |
void ots_clear_error | ( | void | ) |
Clear last error state.
void ots_error_init | ( | ots_error_t * | error | ) |
Initialize error structure.
[out] | error | Error structure to initialize |
void ots_free_array | ( | void * | arr | ) |
Free an array allocated by the library.
[in] | arr | Array to free |
void ots_free_handle | ( | ots_handle_t | handle | ) |
Free a handle.
[in] | handle | Handle to free |
void ots_free_string | ( | char * | str | ) |
Free a string allocated by the library.
[in] | str | String to free |
void ots_free_tx_description | ( | ots_tx_description_t * | desc | ) |
Free transaction description.
[in] | desc | Transaction description to free |
ots_result_t ots_get_error_message | ( | int32_t | error_code | ) |
Get error message for specific error code.
[in] | error_code | Error code to get message for |
ots_result_t ots_get_last_error | ( | void | ) |
Get error message for last error.
bool ots_has_error | ( | const ots_result_t * | result | ) |
Check if result contains an error.
[in] | result | Result to check |
bool ots_is_error | ( | const ots_result_t * | result | ) |
Check if result contains an error.
[in] | result | Result to check |
void ots_seed_indices_free | ( | ots_seed_indices_t * | indices | ) |
Free seed indices, securely wiping memory.
[in,out] | indices | Indices to free |
ots_result_t ots_version | ( | void | ) |
Get library version string.
ots_result_t ots_version_components | ( | void | ) |
Get version components [major, minor, patch].
void ots_wipeable_string_free | ( | ots_wipeable_string_t * | str | ) |
Free a wipeable string, securely wiping memory.
[in,out] | str | String to free |