|
Monero
|
#include <ringdb.h>


Public Member Functions | |
| ringdb (std::string filename, const std::string &genesis) | |
| void | close () |
| ~ringdb () | |
| bool | add_rings (const crypto::chacha_key &chacha_key, const cryptonote::transaction_prefix &tx) |
| bool | remove_rings (const crypto::chacha_key &chacha_key, const std::vector< crypto::key_image > &key_images) |
| bool | remove_rings (const crypto::chacha_key &chacha_key, const cryptonote::transaction_prefix &tx) |
| bool | get_ring (const crypto::chacha_key &chacha_key, const crypto::key_image &key_image, std::vector< uint64_t > &outs) |
| bool | get_rings (const crypto::chacha_key &chacha_key, const std::vector< crypto::key_image > &key_images, std::vector< std::vector< uint64_t > > &all_outs) |
| bool | set_ring (const crypto::chacha_key &chacha_key, const crypto::key_image &key_image, const std::vector< uint64_t > &outs, bool relative) |
| bool | set_rings (const crypto::chacha_key &chacha_key, const std::vector< std::pair< crypto::key_image, std::vector< uint64_t > > > &rings, bool relative) |
| bool | blackball (const std::pair< uint64_t, uint64_t > &output) |
| bool | blackball (const std::vector< std::pair< uint64_t, uint64_t > > &outputs) |
| bool | unblackball (const std::pair< uint64_t, uint64_t > &output) |
| bool | blackballed (const std::pair< uint64_t, uint64_t > &output) |
| bool | clear_blackballs () |
Private Member Functions | |
| bool | blackball_worker (const std::vector< std::pair< uint64_t, uint64_t > > &outputs, int op) |
Private Attributes | |
| std::string | filename |
| MDB_env * | env |
| MDB_dbi | dbi_rings |
| MDB_dbi | dbi_blackballs |
| tools::ringdb::ringdb | ( | std::string | filename, |
| const std::string & | genesis ) |
| tools::ringdb::~ringdb | ( | ) |
| bool tools::ringdb::add_rings | ( | const crypto::chacha_key & | chacha_key, |
| const cryptonote::transaction_prefix & | tx ) |
|
private |
| bool tools::ringdb::clear_blackballs | ( | ) |
| void tools::ringdb::close | ( | ) |
| bool tools::ringdb::get_ring | ( | const crypto::chacha_key & | chacha_key, |
| const crypto::key_image & | key_image, | ||
| std::vector< uint64_t > & | outs ) |
| bool tools::ringdb::get_rings | ( | const crypto::chacha_key & | chacha_key, |
| const std::vector< crypto::key_image > & | key_images, | ||
| std::vector< std::vector< uint64_t > > & | all_outs ) |
| bool tools::ringdb::remove_rings | ( | const crypto::chacha_key & | chacha_key, |
| const cryptonote::transaction_prefix & | tx ) |
| bool tools::ringdb::remove_rings | ( | const crypto::chacha_key & | chacha_key, |
| const std::vector< crypto::key_image > & | key_images ) |
| bool tools::ringdb::set_ring | ( | const crypto::chacha_key & | chacha_key, |
| const crypto::key_image & | key_image, | ||
| const std::vector< uint64_t > & | outs, | ||
| bool | relative ) |
| bool tools::ringdb::set_rings | ( | const crypto::chacha_key & | chacha_key, |
| const std::vector< std::pair< crypto::key_image, std::vector< uint64_t > > > & | rings, | ||
| bool | relative ) |
|
private |
|
private |
|
private |
|
private |