forked from MrCyjaneK/monero_c
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from MrCyjaneK/master
update
- Loading branch information
Showing
11 changed files
with
208 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// ignore_for_file: constant_identifier_names | ||
const String wallet2_api_c_h_sha256 = "e8db0ef0324a153f5e3ecca4c0db23c54f4576e84988f04bd4f11c1142f9d7ad"; | ||
const String wallet2_api_c_cpp_sha256 = "dca52ac9ee009fda9fb5726543a454885e61d8eb74fb33112288029ed625bec5-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; | ||
const String wallet2_api_c_h_sha256 = "198a27486ce4f014b737f52ec2879a90838c3b3ca088de8dc7d55b79a10f4a5b"; | ||
const String wallet2_api_c_cpp_sha256 = "22b0c9dd542fb55edfe9e17da67e97ddf5f80bcdd3e126e1bd64cce54234bde1-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; | ||
const String wallet2_api_c_exp_sha256 = "c8913ac41068f67b57c9b0a3c7dd8973e3c1273b66c2ff0aadb0003931da748c"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ dependencies: | |
dev_dependencies: | ||
lints: ^5.0.0 | ||
test: ^1.24.0 | ||
ffigen: ^14.0.0 | ||
ffigen: ^14.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const moneroChecksum = { | ||
wallet2_api_c_h_sha256: "e8db0ef0324a153f5e3ecca4c0db23c54f4576e84988f04bd4f11c1142f9d7ad", | ||
wallet2_api_c_cpp_sha256: "dca52ac9ee009fda9fb5726543a454885e61d8eb74fb33112288029ed625bec5-b089f9ee69924882c5d14dd1a6991deb05d9d1cd", | ||
wallet2_api_c_h_sha256: "198a27486ce4f014b737f52ec2879a90838c3b3ca088de8dc7d55b79a10f4a5b", | ||
wallet2_api_c_cpp_sha256: "22b0c9dd542fb55edfe9e17da67e97ddf5f80bcdd3e126e1bd64cce54234bde1-b089f9ee69924882c5d14dd1a6991deb05d9d1cd", | ||
wallet2_api_c_exp_sha256: "c8913ac41068f67b57c9b0a3c7dd8973e3c1273b66c2ff0aadb0003931da748c", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef MONEROC_CHECKSUMS | ||
#define MONEROC_CHECKSUMS | ||
const char * MONERO_wallet2_api_c_h_sha256 = "e8db0ef0324a153f5e3ecca4c0db23c54f4576e84988f04bd4f11c1142f9d7ad"; | ||
const char * MONERO_wallet2_api_c_cpp_sha256 = "dca52ac9ee009fda9fb5726543a454885e61d8eb74fb33112288029ed625bec5-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; | ||
const char * MONERO_wallet2_api_c_h_sha256 = "198a27486ce4f014b737f52ec2879a90838c3b3ca088de8dc7d55b79a10f4a5b"; | ||
const char * MONERO_wallet2_api_c_cpp_sha256 = "22b0c9dd542fb55edfe9e17da67e97ddf5f80bcdd3e126e1bd64cce54234bde1-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; | ||
const char * MONERO_wallet2_api_c_exp_sha256 = "c8913ac41068f67b57c9b0a3c7dd8973e3c1273b66c2ff0aadb0003931da748c"; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 6b40191d35df998280e1d6e19ff9bf4bce54d5bf Mon Sep 17 00:00:00 2001 | ||
From 77f328ba6befb9b964f764a27f8a03b71bf9095d Mon Sep 17 00:00:00 2001 | ||
From: Czarek Nakamoto <[email protected]> | ||
Date: Wed, 26 Jun 2024 15:04:38 +0200 | ||
Subject: [PATCH 16/16] add dummy device for ledger | ||
|
@@ -12,10 +12,10 @@ Subject: [PATCH 16/16] add dummy device for ledger | |
src/device/device_io_dummy.hpp | 74 ++++++++++++++++++ | ||
src/device/device_ledger.cpp | 6 +- | ||
src/device/device_ledger.hpp | 7 +- | ||
src/wallet/api/wallet.cpp | 93 +++++++++++++++++++++++ | ||
src/wallet/api/wallet.cpp | 94 +++++++++++++++++++++++ | ||
src/wallet/api/wallet.h | 18 +++++ | ||
src/wallet/api/wallet2_api.h | 12 +++ | ||
11 files changed, 356 insertions(+), 21 deletions(-) | ||
11 files changed, 357 insertions(+), 21 deletions(-) | ||
create mode 100644 src/device/device_io_dummy.cpp | ||
create mode 100644 src/device/device_io_dummy.hpp | ||
|
||
|
@@ -414,7 +414,7 @@ index 03058c4f1..506f27c4a 100644 | |
unsigned char buffer_send[BUFFER_SEND_SIZE]; | ||
unsigned int length_recv; | ||
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp | ||
index a307d35a7..3ead385ec 100644 | ||
index 8bdd75a5a..09f91c5e2 100644 | ||
--- a/src/wallet/api/wallet.cpp | ||
+++ b/src/wallet/api/wallet.cpp | ||
@@ -49,6 +49,9 @@ | ||
|
@@ -427,7 +427,7 @@ index a307d35a7..3ead385ec 100644 | |
|
||
using namespace std; | ||
using namespace cryptonote; | ||
@@ -3298,4 +3301,94 @@ uint64_t WalletImpl::getBytesSent() | ||
@@ -3299,4 +3302,95 @@ uint64_t WalletImpl::getBytesSent() | ||
return m_wallet->get_bytes_sent(); | ||
} | ||
|
||
|
@@ -502,6 +502,7 @@ index a307d35a7..3ead385ec 100644 | |
+ return; | ||
+ #else | ||
+ hw::io::device_io_dummy::receivedFromDevice = static_cast<unsigned char *>(malloc(len)); | ||
+ hw::io::device_io_dummy::receivedFromDeviceLength = len; | ||
+ memset(hw::io::device_io_dummy::receivedFromDevice, 0, len); | ||
+ memcpy(hw::io::device_io_dummy::receivedFromDevice, data, len); | ||
+ hw::io::device_io_dummy::waitsForDeviceReceive = false; | ||
|
@@ -575,5 +576,5 @@ index 2bbb32c8b..c8d6bb179 100644 | |
|
||
/** | ||
-- | ||
2.39.2 | ||
2.45.1.windows.1 | ||
|