PIVX Core  5.6.99
P2P Digital Currency
sapling_util.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 #ifndef PIVX_SAPLING_SAPLING_UTIL_H
7 #define PIVX_SAPLING_SAPLING_UTIL_H
8 
9 #include "fs.h"
10 #include "uint256.h"
11 
12 #include <sodium.h>
13 #include <vector>
14 #include <cstdint>
15 
16 std::vector<unsigned char> convertIntToVectorLE(const uint64_t val_int);
17 std::vector<bool> convertBytesVectorToVector(const std::vector<unsigned char>& bytes);
18 uint64_t convertVectorToInt(const std::vector<bool>& v);
19 
20 // random number generator using sodium.
22 
23 #endif // PIVX_SAPLING_SAPLING_UTIL_H
256-bit opaque blob.
Definition: uint256.h:138
uint256 random_uint256()
uint64_t convertVectorToInt(const std::vector< bool > &v)
std::vector< unsigned char > convertIntToVectorLE(const uint64_t val_int)
std::vector< bool > convertBytesVectorToVector(const std::vector< unsigned char > &bytes)