Skip to content

Commit

Permalink
Fix Orchard proof base size (add 96 bytes as a part of ZSA) - this fi…
Browse files Browse the repository at this point in the history
…xes two gtests
  • Loading branch information
dmidem committed Aug 8, 2023
1 parent c4f51b6 commit 7a18e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zcash/Zcash.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define ZC_ZIP225_ORCHARD_ANCHOR_SIZE 32
// - CompactSize is at least 3 bytes because sizeProofsOrchard >= 253
#define ZC_ZIP225_ORCHARD_SIZE_PROOFS_BASE_SIZE 3
#define ZC_ZIP225_ORCHARD_PROOF_BASE_SIZE 2720
#define ZC_ZIP225_ORCHARD_PROOF_BASE_SIZE 2720 + 96 // 96 added as a part of ZSA
#define ZC_ZIP225_ORCHARD_BINDING_SIG_SIZE 64
#define ZC_ZIP225_ORCHARD_BASE_SIZE (ZC_ZIP225_ORCHARD_NUM_ACTIONS_SIZE + ZC_ZIP225_ORCHARD_FLAGS_SIZE + ZC_ZIP225_ORCHARD_VALUE_BALANCE_SIZE + ZC_ZIP225_ORCHARD_ANCHOR_SIZE + ZC_ZIP225_ORCHARD_SIZE_PROOFS_BASE_SIZE + ZC_ZIP225_ORCHARD_PROOF_BASE_SIZE + ZC_ZIP225_ORCHARD_BINDING_SIG_SIZE)
// Marginal transaction size per Orchard Action
Expand Down

0 comments on commit 7a18e44

Please sign in to comment.