Monero
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
gen_ring_signature_big Class Reference

#include <ring_signature_1.h>

Inheritance diagram for gen_ring_signature_big:
Inheritance graph
[legend]
Collaboration diagram for gen_ring_signature_big:
Collaboration graph
[legend]

Public Member Functions

 gen_ring_signature_big ()
 
bool generate (std::vector< test_event_entry > &events) const
 
bool check_balances_1 (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool check_balances_2 (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
- Public Member Functions inherited from test_chain_unit_base
void register_callback (const std::string &cb_name, verify_callback cb)
 
bool verify (const std::string &cb_name, cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events)
 
bool check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &)
 
bool check_tx_verification_context (const cryptonote::tx_verification_context &tvc, bool, size_t, const cryptonote::transaction &)
 
bool check_tx_verification_context_array (const std::vector< cryptonote::tx_verification_context > &tvcs, size_t, size_t, const std::vector< cryptonote::transaction > &)
 

Private Attributes

size_t m_test_size
 
uint64_t m_tx_amount
 
cryptonote::account_base m_bob_account
 
cryptonote::account_base m_alice_account
 

Additional Inherited Members

- Public Types inherited from test_chain_unit_base
typedef boost::function< bool(cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events) verify_callback)
 
typedef std::map< std::string, verify_callbackcallbacks_map
 

Constructor & Destructor Documentation

◆ gen_ring_signature_big()

gen_ring_signature_big::gen_ring_signature_big ( )

Member Function Documentation

◆ check_balances_1()

bool gen_ring_signature_big::check_balances_1 ( cryptonote::core & c,
size_t ev_index,
const std::vector< test_event_entry > & events )

◆ check_balances_2()

bool gen_ring_signature_big::check_balances_2 ( cryptonote::core & c,
size_t ev_index,
const std::vector< test_event_entry > & events )

◆ generate()

bool gen_ring_signature_big::generate ( std::vector< test_event_entry > & events) const

Check ring signature with m_test_size-1 sources.

  • Create 100 accounts.
  • Create 100 blocks, each block contains transaction from the miner to account[i].
  • Create transaction with ring signature from account[99] to Alice with nmix = 99.
  • Check balances.

Member Data Documentation

◆ m_alice_account

cryptonote::account_base gen_ring_signature_big::m_alice_account
private

◆ m_bob_account

cryptonote::account_base gen_ring_signature_big::m_bob_account
private

◆ m_test_size

size_t gen_ring_signature_big::m_test_size
private

◆ m_tx_amount

uint64_t gen_ring_signature_big::m_tx_amount
private

The documentation for this class was generated from the following files: