Bitcoin Core 31.99.0
P2P Digital Currency
Public Attributes | List of all members
label_cache_entry Struct Reference

Labels. More...

#include <tests_impl.h>

Public Attributes

unsigned char label [33]
 
unsigned char label_tweak [32]
 

Detailed Description

Labels.

The structs and callback function are implemented here as a demonstration of how the label lookup callback is meant to query a label cache and return the label tweak when a match is found. This is for demonstration purposes only and not optimized. In production, it is expected that the caller will be using a much more performant data structure for storing and querying labels, like e.g. a hash table with O(1) lookup cost.

Recipients not using labels can ignore these steps and simply pass NULL for the label_lookup and label_context arguments:

secp256k1_silentpayments_recipient_scan_outputs(..., NULL, NULL);

Definition at line 91 of file silentpayments.c.

Member Data Documentation

◆ label

unsigned char label_cache_entry::label

Definition at line 92 of file silentpayments.c.

◆ label_tweak

unsigned char label_cache_entry::label_tweak

Definition at line 93 of file silentpayments.c.


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