File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -1743,7 +1743,7 @@ pub struct BlockParams<'a> {
1743
1743
1744
1744
const BLOCK_N_PREVIOUS_PROOFS : usize = 2 ;
1745
1745
1746
- pub fn generate_block_proof ( params : BlockParams , w : & mut Witness < Fp > ) -> WrapProof {
1746
+ pub ( super ) fn generate_block_proof ( params : BlockParams , w : & mut Witness < Fp > ) -> WrapProof {
1747
1747
w. ocaml_aux = read_witnesses ( ) ;
1748
1748
1749
1749
let BlockParams {
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ pub struct MergeParams<'a> {
167
167
168
168
const MERGE_N_PREVIOUS_PROOFS : usize = 2 ;
169
169
170
- pub fn generate_merge_proof ( params : MergeParams , w : & mut Witness < Fp > ) -> WrapProof {
170
+ pub ( super ) fn generate_merge_proof ( params : MergeParams , w : & mut Witness < Fp > ) -> WrapProof {
171
171
let MergeParams {
172
172
statement,
173
173
proofs,
Original file line number Diff line number Diff line change @@ -24,3 +24,20 @@ pub mod zkapp;
24
24
25
25
pub const BACKEND_TICK_ROUNDS_N : usize = 16 ;
26
26
pub const BACKEND_TOCK_ROUNDS_N : usize = 15 ;
27
+
28
+ pub fn generate_tx_proof ( params : transaction:: TransactionParams ) -> wrap:: WrapProof {
29
+ use { mina_hasher:: Fp , witness:: Witness } ;
30
+ let mut w: Witness < Fp > = Witness :: new :: < constants:: StepTransactionProof > ( ) ;
31
+ transaction:: generate_tx_proof ( params, & mut w)
32
+ }
33
+ pub fn generate_merge_proof ( params : merge:: MergeParams ) -> wrap:: WrapProof {
34
+ use { mina_hasher:: Fp , witness:: Witness } ;
35
+ let mut w: Witness < Fp > = Witness :: new :: < constants:: StepMergeProof > ( ) ;
36
+ merge:: generate_merge_proof ( params, & mut w)
37
+ }
38
+ pub fn generate_block_proof ( params : block:: BlockParams ) -> wrap:: WrapProof {
39
+ use { mina_hasher:: Fp , witness:: Witness } ;
40
+ let mut w: Witness < Fp > = Witness :: new :: < constants:: StepBlockProof > ( ) ;
41
+ block:: generate_block_proof ( params, & mut w)
42
+ }
43
+ pub use zkapp:: generate_zkapp_proof;
Original file line number Diff line number Diff line change @@ -3928,7 +3928,7 @@ pub struct TransactionParams<'a> {
3928
3928
pub ocaml_wrap_witness : Option < Vec < Fq > > ,
3929
3929
}
3930
3930
3931
- fn generate_tx_proof ( params : TransactionParams , w : & mut Witness < Fp > ) -> WrapProof {
3931
+ pub ( super ) fn generate_tx_proof ( params : TransactionParams , w : & mut Witness < Fp > ) -> WrapProof {
3932
3932
let TransactionParams {
3933
3933
statement,
3934
3934
tx_witness,
You can’t perform that action at this time.
0 commit comments