diff --git a/src/bip32_utils.h b/src/bip32_utils.h new file mode 100644 index 0000000..d0b7050 --- /dev/null +++ b/src/bip32_utils.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include "bip32.h" + +typedef struct bip32_path_t { + uint8_t length; + uint32_t path[MAX_BIP32_PATH]; +} bip32_path_t; diff --git a/src/eth_plugin_interface.h b/src/eth_plugin_interface.h index 65323fc..3927d35 100644 --- a/src/eth_plugin_interface.h +++ b/src/eth_plugin_interface.h @@ -9,6 +9,7 @@ #include "common_utils.h" #include "plugin_utils.h" #include "tx_content.h" +#include "bip32_utils.h" /************************************************************************************************* * Comments provided in this file are quick reminders on the usage of the plugin interface * @@ -156,6 +157,7 @@ typedef struct ethPluginInitContract_s { // INPUT. Total length of the data to come. size_t dataSize; + bip32_path_t *bip32; } ethPluginInitContract_t; // --8<-- [end:handle_init_contract_parameters]