danicoin/tests/PerformanceTests/GenerateKeyImageHelper.h

24 lines
660 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-03-03 22:07:58 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
2015-07-30 15:22:07 +00:00
#include "CryptoNoteCore/CryptoNoteBasic.h"
#include "CryptoNoteCore/CryptoNoteFormatUtils.h"
2014-03-03 22:07:58 +00:00
2015-07-30 15:22:07 +00:00
#include "SingleTransactionTestBase.h"
2014-03-03 22:07:58 +00:00
class test_generate_key_image_helper : public single_tx_test_base
{
public:
static const size_t loop_count = 500;
bool test()
{
2015-05-27 12:08:46 +00:00
CryptoNote::KeyPair in_ephemeral;
2015-07-30 15:22:07 +00:00
Crypto::KeyImage ki;
return CryptoNote::generate_key_image_helper(m_bob.getAccountKeys(), m_tx_pub_key, 0, in_ephemeral, ki);
2014-03-03 22:07:58 +00:00
}
};