Skip to content

Commit 059eddf

Browse files
Merge pull request #24 from LedgerHQ/fbe/give_derivation_path_to_plugin
Give knowledge of derivation path from eth to plugin
2 parents f794d6d + 2666253 commit 059eddf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/bip32_utils.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <stdint.h>
4+
#include "bip32.h"
5+
6+
typedef struct bip32_path_t {
7+
uint8_t length;
8+
uint32_t path[MAX_BIP32_PATH];
9+
} bip32_path_t;

src/eth_plugin_interface.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "common_utils.h"
1010
#include "plugin_utils.h"
1111
#include "tx_content.h"
12+
#include "bip32_utils.h"
1213

1314
/*************************************************************************************************
1415
* Comments provided in this file are quick reminders on the usage of the plugin interface *
@@ -156,6 +157,7 @@ typedef struct ethPluginInitContract_s {
156157

157158
// INPUT. Total length of the data to come.
158159
size_t dataSize;
160+
bip32_path_t *bip32;
159161

160162
} ethPluginInitContract_t;
161163
// --8<-- [end:handle_init_contract_parameters]

0 commit comments

Comments
 (0)