Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
// Copyright (c) 2016-2020 The Hush developers
|
|
// Distributed under the GPLv3 software license, see the accompanying
|
|
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
#ifndef ZC_ZCASH_H_
|
|
#define ZC_ZCASH_H_
|
|
|
|
#define HUSH_NUM_JS_INPUTS 2
|
|
#define HUSH_NUM_JS_OUTPUTS 2
|
|
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
|
|
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
|
|
|
|
#define SAPLING_INCREMENTAL_MERKLE_TREE_DEPTH 32
|
|
|
|
#define NOTEENCRYPTION_AUTH_BYTES 16
|
|
|
|
#define ZC_NOTEPLAINTEXT_LEADING 1
|
|
#define ZC_V_SIZE 8
|
|
#define ZC_RHO_SIZE 32
|
|
#define ZC_R_SIZE 32
|
|
#define HUSH_MEMO_SIZE 512
|
|
#define ZC_DIVERSIFIER_SIZE 11
|
|
#define ZC_JUBJUB_POINT_SIZE 32
|
|
#define ZC_JUBJUB_SCALAR_SIZE 32
|
|
|
|
#define ZC_NOTEPLAINTEXT_SIZE (ZC_NOTEPLAINTEXT_LEADING + ZC_V_SIZE + ZC_RHO_SIZE + ZC_R_SIZE + HUSH_MEMO_SIZE)
|
|
|
|
#define ZC_SAPLING_ENCPLAINTEXT_SIZE (ZC_NOTEPLAINTEXT_LEADING + ZC_DIVERSIFIER_SIZE + ZC_V_SIZE + ZC_R_SIZE + HUSH_MEMO_SIZE)
|
|
#define ZC_SAPLING_OUTPLAINTEXT_SIZE (ZC_JUBJUB_POINT_SIZE + ZC_JUBJUB_SCALAR_SIZE)
|
|
|
|
#define ZC_SAPLING_ENCCIPHERTEXT_SIZE (ZC_SAPLING_ENCPLAINTEXT_SIZE + NOTEENCRYPTION_AUTH_BYTES)
|
|
#define ZC_SAPLING_OUTCIPHERTEXT_SIZE (ZC_SAPLING_OUTPLAINTEXT_SIZE + NOTEENCRYPTION_AUTH_BYTES)
|
|
|
|
#endif // ZC_ZCASH_H_
|
|
|