Change ciphertext length to match protocol spec, and refactor the use of constants.
This commit is contained in:
18
src/zcash/Zcash.h
Normal file
18
src/zcash/Zcash.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _ZCCONSTANTS_H_
|
||||
#define _ZCCONSTANTS_H_
|
||||
|
||||
#define ZC_NUM_JS_INPUTS 2
|
||||
#define ZC_NUM_JS_OUTPUTS 2
|
||||
#define INCREMENTAL_MERKLE_TREE_DEPTH 20
|
||||
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
|
||||
|
||||
// TODO: these constants should be 'ZC'
|
||||
// for consistency, but I didn't want to
|
||||
// interfere with the old constants
|
||||
#define ZCASH_NOTEPLAINTEXT_LEADING 1
|
||||
#define ZCASH_V_SIZE 8
|
||||
#define ZCASH_RHO_SIZE 32
|
||||
#define ZCASH_R_SIZE 32
|
||||
#define ZCASH_MEMO_SIZE 128
|
||||
|
||||
#endif // _ZCCONSTANTS_H_
|
||||
Reference in New Issue
Block a user