Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Macros | Functions | Variables
silentpayments.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <secp256k1_extrakeys.h>
#include <secp256k1_silentpayments.h>
#include "examples_util.h"
Include dependency graph for silentpayments.c:

Go to the source code of this file.

Classes

struct  label_cache_entry
 Labels. More...
 
struct  labels_cache
 

Macros

#define N_INPUTS   2
 
#define N_OUTPUTS   3
 

Functions

const unsigned char * label_lookup (const unsigned char *label33, const void *cache_ptr)
 
int main (void)
 

Variables

static unsigned char smallest_outpoint [36]
 
static unsigned char bob_scan_key [32]
 
static unsigned char bob_spend_key [32]
 
static unsigned char bob_scan_and_spend_pubkeys [2][33]
 
static unsigned char carol_scan_key [32]
 
static unsigned char carol_address [2][33]
 

Macro Definition Documentation

◆ N_INPUTS

#define N_INPUTS   2

Definition at line 19 of file silentpayments.c.

◆ N_OUTPUTS

#define N_OUTPUTS   3

Definition at line 20 of file silentpayments.c.

Function Documentation

◆ label_lookup()

const unsigned char * label_lookup ( const unsigned char *  label33,
const void *  cache_ptr 
)

Definition at line 101 of file silentpayments.c.

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 115 of file silentpayments.c.

Here is the call graph for this function:

Variable Documentation

◆ bob_scan_and_spend_pubkeys

unsigned char bob_scan_and_spend_pubkeys[2][33]
static
Initial value:
= {
{
0x02, 0x15, 0x40, 0xae, 0xa8, 0x97, 0x54, 0x7a,
0xd4, 0x39, 0xb4, 0xe0, 0xf6, 0x09, 0xe5, 0xf0,
0xfa, 0x63, 0xde, 0x89, 0xab, 0x11, 0xed, 0xe3,
0x1e, 0x8c, 0xde, 0x4b, 0xe2, 0x19, 0x42, 0x5f, 0x23
},
{
0x02, 0x5c, 0xc9, 0x85, 0x6d, 0x6f, 0x83, 0x75,
0x35, 0x0e, 0x12, 0x39, 0x78, 0xda, 0xac, 0x20,
0x0c, 0x26, 0x0c, 0xb5, 0xb5, 0xae, 0x83, 0x10,
0x6c, 0xab, 0x90, 0x48, 0x4d, 0xcd, 0x8f, 0xcf, 0x36
}
}

Definition at line 41 of file silentpayments.c.

◆ bob_scan_key

unsigned char bob_scan_key[32]
static
Initial value:
= {
0xa8, 0x90, 0x54, 0xc9, 0x5b, 0xe3, 0xc3, 0x01,
0x56, 0x65, 0x74, 0xf2, 0xaa, 0x93, 0xad, 0xe0,
0x51, 0x85, 0x09, 0x03, 0xa6, 0x9c, 0xbd, 0xd1,
0xd4, 0x7e, 0xae, 0x26, 0x3d, 0x7b, 0xc0, 0x31
}

Definition at line 29 of file silentpayments.c.

◆ bob_spend_key

unsigned char bob_spend_key[32]
static
Initial value:
= {
0x9d, 0x6a, 0xd8, 0x55, 0xce, 0x34, 0x17, 0xef,
0x84, 0xe8, 0x36, 0x89, 0x2e, 0x5a, 0x56, 0x39,
0x2b, 0xfb, 0xa0, 0x5f, 0xa5, 0xd9, 0x7c, 0xce,
0xa3, 0x0e, 0x26, 0x6f, 0x54, 0x0e, 0x08, 0xb3
}

Definition at line 35 of file silentpayments.c.

◆ carol_address

unsigned char carol_address[2][33]
static
Initial value:
= {
{
0x03, 0xbb, 0xc6, 0x3f, 0x12, 0x74, 0x5d, 0x3b,
0x9e, 0x9d, 0x24, 0xc6, 0xcd, 0x7a, 0x1e, 0xfe,
0xba, 0xd0, 0xa7, 0xf4, 0x69, 0x23, 0x2f, 0xbe,
0xcf, 0x31, 0xfb, 0xa7, 0xb4, 0xf7, 0xdd, 0xed, 0xa8
},
{
0x03, 0x81, 0xeb, 0x9a, 0x9a, 0x9e, 0xc7, 0x39,
0xd5, 0x27, 0xc1, 0x63, 0x1b, 0x31, 0xb4, 0x21,
0x56, 0x6f, 0x5c, 0x2a, 0x47, 0xb4, 0xab, 0x5b,
0x1f, 0x6a, 0x68, 0x6d, 0xfb, 0x68, 0xea, 0xb7, 0x16
}
}

Definition at line 61 of file silentpayments.c.

◆ carol_scan_key

unsigned char carol_scan_key[32]
static
Initial value:
= {
0x04, 0xb2, 0xa4, 0x11, 0x63, 0x5c, 0x09, 0x77,
0x59, 0xaa, 0xcd, 0x0f, 0x00, 0x5a, 0x4c, 0x82,
0xc8, 0xc9, 0x28, 0x62, 0xc6, 0xfc, 0x28, 0x4b,
0x80, 0xb8, 0xef, 0xeb, 0xc2, 0x0c, 0x3d, 0x17
}

Definition at line 55 of file silentpayments.c.

◆ smallest_outpoint

unsigned char smallest_outpoint[36]
static
Initial value:
= {
0x16, 0x9e, 0x1e, 0x83, 0xe9, 0x30, 0x85, 0x33, 0x91,
0xbc, 0x6f, 0x35, 0xf6, 0x05, 0xc6, 0x75, 0x4c, 0xfe,
0xad, 0x57, 0xcf, 0x83, 0x87, 0x63, 0x9d, 0x3b, 0x40,
0x96, 0xc5, 0x4f, 0x18, 0xf4, 0x00, 0x00, 0x00, 0x00
}

Definition at line 23 of file silentpayments.c.