diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:44:03 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:44:04 +0200 |
| commit | 48e3a341f8bb601895c94e7b637475f8911ae530 (patch) | |
| tree | 393b21c46c390e9510923da70ce3b934b7b87adc /src/cryptonote_basic/cryptonote_format_utils.cpp | |
| parent | 6f07b8ffa555fb3b64c4d5007acd46f496c28d19 (diff) | |
| parent | c9b13fbbc23d065afca62a499484c283079c0fa5 (diff) | |
| download | monzero-core-48e3a341f8bb601895c94e7b637475f8911ae530.tar.gz monzero-core-48e3a341f8bb601895c94e7b637475f8911ae530.tar.xz monzero-core-48e3a341f8bb601895c94e7b637475f8911ae530.zip | |
Merge pull request #5211
c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec)
a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec)
d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.cpp')
| -rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index f40464bd1..c2ad97a64 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -282,6 +282,11 @@ namespace cryptonote //--------------------------------------------------------------- bool generate_key_image_helper_precomp(const account_keys& ack, const crypto::public_key& out_key, const crypto::key_derivation& recv_derivation, size_t real_output_index, const subaddress_index& received_index, keypair& in_ephemeral, crypto::key_image& ki, hw::device &hwdev) { + if (hwdev.compute_key_image(ack, out_key, recv_derivation, real_output_index, received_index, in_ephemeral, ki)) + { + return true; + } + if (ack.m_spend_secret_key == crypto::null_skey) { // for watch-only wallet, simply copy the known output pubkey |
