PIVX Core  5.6.99
P2P Digital Currency
prf.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2020 The ZCash developers
2 // Copyright (c) 2020 The PIVX Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 /*
7 // Zcash uses SHA256Compress as a PRF for various components
8 // within the zkSNARK circuit.
9 */
10 
11 #ifndef PIVX_SAPLING_PRF_H
12 #define PIVX_SAPLING_PRF_H
13 
14 #include "uint256.h"
15 
16 #include <array>
17 
19 uint256 PRF_ask(const uint256& sk);
20 uint256 PRF_nsk(const uint256& sk);
21 uint256 PRF_ovk(const uint256& sk);
22 
23 std::array<unsigned char, 11> default_diversifier(const uint256& sk);
24 
25 #endif // PIVX_SAPLING_PRF_H
256-bit opaque blob.
Definition: uint256.h:138
uint256 PRF_ovk(const uint256 &sk)
Definition: prf.cpp:50
uint256 PRF_ask(const uint256 &sk)
Sapling functions.
Definition: prf.cpp:34
uint256 PRF_nsk(const uint256 &sk)
Definition: prf.cpp:42
std::array< unsigned char, 11 > default_diversifier(const uint256 &sk)
Definition: prf.cpp:58