diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2026-05-08 21:43:24 -0400 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2026-05-08 21:43:24 -0400 |
| commit | 57e6555a5c51d6ddc0f5fb6d2675bc7f38a59705 (patch) | |
| tree | 2ba874d93d3a67610c7ee58c7aa3894ed58619d5 /monero_libwallet2_api_c | |
| parent | 15b46af9e2ad37edb79f7be5ea301206361d53b2 (diff) | |
trezor import/export/sign functionscyjan-twip2
Diffstat (limited to 'monero_libwallet2_api_c')
| -rw-r--r-- | monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp | 9 | ||||
| -rw-r--r-- | monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp index db56643..a800ad5 100644 --- a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp +++ b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp @@ -101,6 +101,7 @@ const char* MONERO_PendingTransaction_commitUR(void* pendingTx_ptr, int max_frag return strdup(str.c_str()); DEBUG_END() } + uint64_t MONERO_PendingTransaction_amount(void* pendingTx_ptr) { DEBUG_START() Monero::PendingTransaction *pendingTx = reinterpret_cast<Monero::PendingTransaction*>(pendingTx_ptr); @@ -264,6 +265,14 @@ const char* MONERO_UnsignedTransaction_signUR(void* unsignedTx_ptr, int max_frag return strdup(str.c_str()); DEBUG_END() } + +const char* MONERO_UnsignedTransaction_commitTrezor(void* unsignedTx_ptr, int tx_index) { + DEBUG_START() + Monero::UnsignedTransaction *unsignedTx = reinterpret_cast<Monero::UnsignedTransaction*>(unsignedTx_ptr); + std::string str = unsignedTx->commitTrezor(tx_index); + return strdup(str.c_str()); + DEBUG_END() +} // TransactionInfo const int MONERO_TransactionInfoDirection_In = 0; diff --git a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.h b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.h index f3cfdee..fdaf228 100644 --- a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.h +++ b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.h @@ -144,6 +144,7 @@ extern ADDAPI uint64_t MONERO_UnsignedTransaction_txCount(void* unsignedTx_ptr); // virtual bool sign(const std::string &signedFileName) = 0; extern ADDAPI bool MONERO_UnsignedTransaction_sign(void* unsignedTx_ptr, const char* signedFileName); extern ADDAPI const char* MONERO_UnsignedTransaction_signUR(void* unsignedTx_ptr, int max_fragment_length); +extern ADDAPI const char* MONERO_UnsignedTransaction_commitTrezor(void* unsignedTx_ptr, int tx_index); // }; // struct TransactionInfo // { |
