![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
#include "../../../include/secp256k1_silentpayments.h"#include "../../unit_test.h"#include "../../util.h"#include "../../../src/modules/silentpayments/vectors.h"Go to the source code of this file.
Classes | |
| struct | label_cache_entry |
| Labels. More... | |
| struct | labels_cache |
Functions | |
| const unsigned char * | label_lookup (const unsigned char *key, const void *cache_ptr) |
| static void | test_recipient_sort_helper (unsigned char(*sp_addresses[3])[2][33], unsigned char(*sp_outputs[3])[32]) |
| static void | test_recipient_sort (void) |
| static void | test_send_api (void) |
| static void | test_label_api (void) |
| static void | test_recipient_api (void) |
| static void | test_recipient_scan_label_precedes_direct_match (void) |
| void | run_silentpayments_test_vector_send (const struct bip352_test_vector *test) |
| void | run_silentpayments_test_vector_receive (const struct bip352_test_vector *test, const struct bip352_receive_subtest *subtest) |
| static void | silentpayments_sha256_tag_test (void) |
| void | run_silentpayments_test_vectors (void) |
Variables | |
| static unsigned char | MALFORMED_SECKEY [32] = { 0x00 } |
| Constants. More... | |
| static unsigned char | BOB_ADDRESS [2][33] |
| static unsigned char | CAROL_ADDRESS [2][33] |
| static unsigned char | BOB_OUTPUT [32] |
| static unsigned char | CAROL_OUTPUT_ONE [32] |
| static unsigned char | CAROL_OUTPUT_TWO [32] |
| static unsigned char | SMALLEST_OUTPOINT [36] |
| static unsigned char | ALICE_SECKEY [32] |
| struct labels_cache | labels_cache |
| static const struct tf_test_entry | tests_silentpayments [] |
| const unsigned char * label_lookup | ( | const unsigned char * | key, |
| const void * | cache_ptr | ||
| ) |
Definition at line 98 of file tests_impl.h.
| void run_silentpayments_test_vector_receive | ( | const struct bip352_test_vector * | test, |
| const struct bip352_receive_subtest * | subtest | ||
| ) |
Definition at line 748 of file tests_impl.h.
| void run_silentpayments_test_vector_send | ( | const struct bip352_test_vector * | test | ) |
Definition at line 668 of file tests_impl.h.
| void run_silentpayments_test_vectors | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 114 of file tests_impl.h.
|
static |
|
static |
Definition at line 82 of file tests_impl.h.
|
static |
Definition at line 26 of file tests_impl.h.
|
static |
Definition at line 58 of file tests_impl.h.
|
static |
Definition at line 42 of file tests_impl.h.
|
static |
Definition at line 64 of file tests_impl.h.
|
static |
Definition at line 70 of file tests_impl.h.
| struct labels_cache labels_cache |
Definition at line 97 of file tests_impl.h.
|
static |
Constants.
Malformed Seckey: a seckey that is all zeros Addresses: scan and spend public keys for Bob and Carol Outputs: generated outputs from Alice's secret key and Bob/Carol's scan public keys Smallest Outpoint: smallest outpoint lexicographically from the transaction Seckey: secret key for Alice
The values themselves are not important.
Definition at line 25 of file tests_impl.h.
|
static |
Definition at line 76 of file tests_impl.h.
|
static |
Definition at line 923 of file tests_impl.h.