diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-04 10:39:17 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-17 16:12:32 +0000 |
commit | e36f5b6021eb541d72fee4b2d5643ba42fd4d9dd (patch) | |
tree | e9ba527083a6e99dc8ed2739ca478dc20a77f6cb /tests | |
parent | wallet2: fix slow multisig unit tests with subaddress patch (diff) | |
download | monero-e36f5b6021eb541d72fee4b2d5643ba42fd4d9dd.tar.xz |
Match surae's recommendation to derive multisig keys
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core_tests/chaingen.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 939b88109..9fed95183 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -521,10 +521,12 @@ inline bool do_replay_file(const std::string& filename) { \ if (msidx_inner != msidx) \ { \ - crypto::hash vkh; \ - crypto::cn_fast_hash(&account[msidx_inner].get_keys().m_view_secret_key, sizeof(crypto::secret_key), vkh); \ - view_keys[msidx].push_back((const crypto::secret_key&)vkh); \ - spend_keys[msidx].push_back(account[msidx_inner].get_keys().m_account_address.m_spend_public_key); \ + crypto::secret_key vkh = cryptonote::get_multisig_blinded_secret_key(account[msidx_inner].get_keys().m_view_secret_key); \ + view_keys[msidx].push_back(vkh); \ + crypto::secret_key skh = cryptonote::get_multisig_blinded_secret_key(account[msidx_inner].get_keys().m_spend_secret_key); \ + crypto::public_key pskh; \ + crypto::secret_key_to_public_key(skh, pskh); \ + spend_keys[msidx].push_back(pskh); \ } \ } \ } \ |