Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
zeth_constants.hpp
Go to the documentation of this file.
1 // Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2 //
3 // SPDX-License-Identifier: LGPL-3.0+
4 
5 #ifndef __ZETH_ZETH_CONSTANTS_HPP__
6 #define __ZETH_ZETH_CONSTANTS_HPP__
7 
8 #include <stddef.h>
9 
10 namespace libzeth
11 {
12 
13 static const size_t ZETH_NUM_JS_INPUTS = 2;
14 static const size_t ZETH_NUM_JS_OUTPUTS = 2;
15 
16 static const size_t ZETH_MERKLE_TREE_DEPTH = 32;
17 
18 static const size_t ZETH_V_SIZE = 64; // 64 bits for the value
19 static const size_t ZETH_RHO_SIZE = 256; // 256 bits for rho
20 static const size_t ZETH_PHI_SIZE = 256; // 256 bits for phi
21 static const size_t ZETH_HSIG_SIZE = 256; // 256 bits for h_sig
22 static const size_t ZETH_A_SK_SIZE = 256; // 256 bits for a_sk
23 static const size_t ZETH_A_PK_SIZE = 256; // 256 bits for a_pk
24 static const size_t ZETH_R_SIZE = 256; // 256 bits for r
25 
26 } // namespace libzeth
27 
28 #endif // __ZETH_ZETH_CONSTANTS_HPP__
libzeth
Definition: binary_operation.hpp:15