TxProver trait to abstract over the circuit parameters

An implementation using local parameters is provided in the zcash_proofs
crate.
This commit is contained in:
Jack Grigg
2018-11-18 11:20:59 +00:00
parent 05f098e893
commit 01618038bf
7 changed files with 390 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ use serialize::Vector;
use JUBJUB;
// π_A + π_B + π_C
const GROTH_PROOF_SIZE: usize = (48 + 96 + 48);
pub const GROTH_PROOF_SIZE: usize = (48 + 96 + 48);
// π_A + π_A' + π_B + π_B' + π_C + π_C' + π_K + π_H
const PHGR_PROOF_SIZE: usize = (33 + 33 + 65 + 33 + 33 + 33 + 33 + 33);