diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-10-11 12:54:17 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-10-11 12:54:17 -0500 |
commit | 7f477c19027ea104279fd33d04e64fd8dad2396e (patch) | |
tree | be99c88cb592145c37c40ee367dc393ff9fb1141 /src/device | |
parent | Merge pull request #7984 (diff) | |
parent | trezor: try empty passphrase first (diff) | |
download | monero-7f477c19027ea104279fd33d04e64fd8dad2396e.tar.xz |
Merge pull request #7793
13a8a57 trezor: try empty passphrase first (Dusan Klinec)
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_cold.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/device/device_cold.hpp b/src/device/device_cold.hpp index d435b448c..07009b9d2 100644 --- a/src/device/device_cold.hpp +++ b/src/device/device_cold.hpp @@ -162,6 +162,26 @@ namespace hw { * Live refresh process termination */ virtual void live_refresh_finish() =0; + + /** + * Requests public address, uses empty passphrase if asked for. + */ + virtual bool get_public_address_with_no_passphrase(cryptonote::account_public_address &pubkey) =0; + + /** + * Reset session ID, restart with a new session. + */ + virtual void reset_session() =0; + + /** + * Returns true if device already asked for passphrase entry before (i.e., obviously supports passphrase entry) + */ + virtual bool seen_passphrase_entry_prompt() =0; + + /** + * Uses empty passphrase for all passphrase queries. + */ + virtual void set_use_empty_passphrase(bool always_use_empty_passphrase) =0; }; } |