Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give knowledge of derivation path from eth to plugin #24

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/bip32_utils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include <stdint.h>
#include "bip32.h"

typedef struct bip32_path_t {
uint8_t length;
uint32_t path[MAX_BIP32_PATH];
} bip32_path_t;
2 changes: 2 additions & 0 deletions src/eth_plugin_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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]
Expand Down
Loading