Commit Graph
169 Commits
Author SHA1 Message Date
jeffro256 c7a2d4f66a crypto: reduce crypto.h header weight 2026-09-07 21:32:29 -05:00
tobtoht be5f1c5173 Merge pull request #10983
ae8291f wallet: display private view keys for hardware wallets (jpk68)

ACKs: SChernykh*, selsta
2026-08-11 21:25:21 +00:00
tobtoht fcd62c20d7 Merge pull request #11057
fccaccb src: fix issues found through static analysis (jpk68)

ACKs: jeffro256, SNeedlewoods
2026-08-11 21:21:49 +00:00
tobtoht 936ac869b6 Merge pull request #11042
e38cfe6 device_ledger: fix some comments (jpk68)

ACKs: thomasbuilds, selsta
2026-08-09 18:40:00 +00:00
jpk68 e38cfe6683 device_ledger: fix some comments 2026-08-07 15:35:54 -04:00
tobtoht 3634d19bb0 Merge pull request #11022
d8b40e3 device: implement default device locking (woodser)

ACKs: jpk68, selsta
2026-08-07 18:27:17 +00:00
reservedbytes 2648a4a335 device: report ledger state when no app is open 2026-08-06 20:08:58 +00:00
jpk68 fccaccbc8e src: fix issues found through static analysis 2026-08-05 21:45:36 -04:00
jpk68 ae8291f9d6 wallet: display private view keys for hardware wallets 2026-08-03 19:35:55 -04:00
woodser d8b40e3898 device: implement default device locking 2026-08-02 15:11:25 -04:00
reservedbytes c6ef8d2caa device: fix ledger status code reporting 2026-07-31 22:47:04 +00:00
Samy e28aec53b0 device: abort Ledger tx prefix hashing on denial 2026-07-05 16:03:09 +02:00
Thomas fecef767c9 Fix spelling typos in comments and string literals 2026-06-27 09:53:48 +02:00
jeffro256 03018306a9 ledger: lazy view key loading
Defer loading of private view key from device until first time it is needed.
Do not fail if this fails. This has two effects:

1. The prompt to export the view key is only needed once when creating a `cryptonote::account_base`
2. The call to `connect()` doesn't fail if the user decies to not export the viewkey, and thus usage of the device without exporting view keys is possible

This is a small convenience for Ledger users, but will be an even larger convenience for Ledger device testing
2026-06-04 13:52:33 -05:00
tobtoht 26c8206e39 Merge pull request #10560
2e8a391 src: replace deprecated sprintf calls (selsta)
2026-06-01 18:11:10 +00:00
Thomas 2c327aa325 fix spelling in comments and docs 2026-05-13 21:20:05 +02:00
selsta 2e8a391d57 src: replace deprecated sprintf calls 2026-05-09 20:44:15 +02:00
jpk68andSNeedlewoods 7d12b568c9 device fix typos 2026-04-22 19:41:32 +02:00
tobtoht b937f8616d ledger: add nano gen5 id 2025-12-01 01:48:32 +01:00
tobtoht e89922a2fd ledger: throw on secret view key export rejection 2025-11-11 21:21:41 +01:00
tobtoht 968d7969c2 cmake: make PER_BLOCK_CHECKPOINT an option 2024-10-25 18:14:23 +02:00
jeffro256 ed955bf751 build: fix build with Boost 1.85 and remove instances of viewkey logging
1. Use `std::is_standard_layout` and `std::is_trivially_copyable` instead of `std::is_pod` for KV byte-wise serialization, which fixes compile issue for Boost UUIDs
2. Use `std::has_unique_object_representations` instead of `alignof(T) == 1` for epee byte spans and epee hex functions
3. Removed reimplementation of `std::hash` for `boost::uuids::uuid
4. Removed `<<` operator overload for `crypto::secret_key`
5. Removed instances in code where private view key was dumped to the log in plaintext
2024-09-06 11:46:22 -05:00
tobtoht bd2b226572 device: add ledger flex support
See: https://github.com/LedgerHQ/ledger-live/blob/bd1b09970f2f5a27eb08352a67a73dfa2fce29f6/libs/ledgerjs/packages/devices/src/index.ts#L111
2024-08-09 10:31:16 +02:00
luigi1111 040bccc22f Merge pull request #9338
4a376d6 copyright: fix vector.h typo (hinto.janaiyo)
d61e8e9 workflows: delete copyright.yml (plowsof)
341771a copyright: bump to 2024 (copyCat)
2024-07-16 18:42:49 -04:00
copyCat 341771ac3e copyright: bump to 2024 2024-05-21 16:29:33 +00:00
cuinix 3837bb853f remove repetitive word
Signed-off-by: cuinix <915115094@qq.com>
2024-04-20 19:17:46 +08:00
selsta 5136974da9 device: boost -> std locks to fix c++17 compilation 2023-10-26 04:02:26 +02:00
luigi1111 9bf06ea75d Merge pull request #8698
5b4fea7 Copyright: Update to 2023 (mj-xmr)
2023-04-25 11:12:56 -04:00
Francois Beutin 1b27fcdf77 device: Add ledger Stax device id to device detection 2023-03-14 10:31:20 +01:00
mj-xmrandmj-xmr 5b4fea72cf Copyright: Update to 2023
Co-authored-by: plowsof <plowsof@protonmail.com>
extra files
2023-01-16 13:00:18 +01:00
luigi1111 ab63fbc549 Merge pull request #8465
04a1e28 ledger support for hf 15 (BP+, view tags) (j-berman)
2022-08-22 22:49:47 -05:00
luigi1111 386032dad9 Merge pull request #8462
f7f1445 device: set ledger min app version (selsta)
2022-08-22 22:49:07 -05:00
luigi1111 df02b56289 Merge pull request #8359
4d7f6f5 GCC: fix some unused warnings (Jeffrey Ryan)
2022-08-22 22:40:09 -05:00
j-berman 04a1e2875d ledger support for hf 15 (BP+, view tags) 2022-08-06 15:00:49 -07:00
selsta f7f14459f5 device: set ledger min app version 2022-07-24 21:01:22 +02:00
Jeffrey Ryan 4d7f6f5cd5 GCC: fix some unused warnings
hash_extra: don't test for success in `jh_hash` and `skein_hash` since its guaranteed
device_ledger: move anonymous global variable apdu_verbose into .cpp file
Add comments to `refreshed` method variable in wallet2
2022-07-11 20:32:03 -05:00
moneromooo-monero 4278a3a7e3 cryptonote_basic: catch crypto api errors 2022-06-20 22:17:57 +00:00
luigi1111 8ddbe18277 Merge pull request #8232
0f7b20a Added support for Ledger Nano S Plus (Mathias Herberts)
2022-04-19 22:15:10 -05:00
j-berman ea87b30f89 Add view tags to outputs to reduce wallet scanning time
Implements view tags as proposed by @UkoeHB in MRL issue
https://github.com/monero-project/research-lab/issues/73

At tx construction, the sender adds a 1-byte view tag to each
output. The view tag is derived from the sender-receiver
shared secret. When scanning for outputs, the receiver can
check the view tag for a match, in order to reduce scanning
time. When the view tag does not match, the wallet avoids the
more expensive EC operations when deriving the output public
key using the shared secret.
2022-04-18 00:49:53 -07:00
Mathias Herberts 0f7b20a1ce Added support for Ledger Nano S Plus 2022-03-31 18:25:09 +02:00
mj-xmr da9aa1f7f8 Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
selsta 1efe624e30 device_ledger: fix incorrect macro
The current code does work by accident, but it might break if
someone uses ASSERT_SW in a different place, or if variables
get renamed.
2021-11-12 02:56:20 +01:00
selsta fbe8358c9f device: fix ledger error strings, add human friendly messages 2021-11-03 00:10:12 +01:00
luigi1111 adb2542a6c Merge pull request #7876
5e63f6c Ledger: member 'mode' was shadowing that of base class (mj-xmr)
2021-10-17 23:29:17 -05:00
luigi1111 7f477c1902 Merge pull request #7793
13a8a57 trezor: try empty passphrase first (Dusan Klinec)
2021-10-11 12:54:17 -05:00
mj-xmr 5e63f6c292 Ledger: member 'mode' was shadowing that of base class 2021-10-07 12:03:17 +02:00
mj-xmr 15936bfa0f Device: remove unused and incorrect non-default constructor 2021-08-19 21:56:12 +02:00
Dusan Klinec 13a8a576ed trezor: try empty passphrase first
- Try empty passphrase first when opening a wallet, as all Trezors will have passphrase enabled by default by Trezor Suite by default.
  This feature enables easier access to all users using disabled passphrase (or empty passhprase)
- If wallet address differs from device address with empty passphrase, another opening attempt is made, without passphrase suppression,
  so user can enter his passhprase if using some. In this scenario, nothing changes to user, wallet opening just consumes one more call
  to Trezor (get wallet address with empty passphrase)
- also change how m_passphrase is used. Previous version did not work well with recent passphrase entry mechanism change (made in Trezor),
  thus this commit fixes the behaviour).
2021-08-03 13:54:04 +02:00
luigi1111 69e714c749 Merge pull request #7745
d52d21b ledger: don't lock for software device (tobtoht)
2021-07-27 16:56:37 -04:00
luigi1111 62bcdc1d3c Merge pull request #7744
ce40c33 ledger: use software device if we have view key (tobtoht)
2021-07-27 16:56:09 -04:00