PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
prf.cpp File Reference
#include "prf.h"
#include "crypto/sha256.h"
#include "hash.h"
#include <array>
#include <sodium.h>
#include <librustzcash.h>
Include dependency graph for prf.cpp:

Go to the source code of this file.

Functions

std::array< unsigned char, 64 > PRF_expand (const uint256 &sk, unsigned char t)
 
uint256 PRF_ask (const uint256 &sk)
 Sapling functions. More...
 
uint256 PRF_nsk (const uint256 &sk)
 
uint256 PRF_ovk (const uint256 &sk)
 
std::array< unsigned char, 11 > default_diversifier (const uint256 &sk)
 

Variables

const unsigned char ZCASH_EXPANDSEED_PERSONALIZATION [crypto_generichash_blake2b_PERSONALBYTES] = {'Z','c','a','s','h','_','E','x','p','a','n','d','S','e','e','d'}
 

Function Documentation

◆ default_diversifier()

std::array<unsigned char, 11> default_diversifier ( const uint256 sk)

Definition at line 58 of file prf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRF_ask()

uint256 PRF_ask ( const uint256 sk)

Sapling functions.

Definition at line 34 of file prf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRF_expand()

std::array<unsigned char, 64> PRF_expand ( const uint256 sk,
unsigned char  t 
)

Definition at line 18 of file prf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRF_nsk()

uint256 PRF_nsk ( const uint256 sk)

Definition at line 42 of file prf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRF_ovk()

uint256 PRF_ovk ( const uint256 sk)

Definition at line 50 of file prf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ZCASH_EXPANDSEED_PERSONALIZATION

const unsigned char ZCASH_EXPANDSEED_PERSONALIZATION[crypto_generichash_blake2b_PERSONALBYTES] = {'Z','c','a','s','h','_','E','x','p','a','n','d','S','e','e','d'}

Definition at line 15 of file prf.cpp.