Skip to content

Commit 041979e

Browse files
committed
Add warning for proof size
1 parent ae2f747 commit 041979e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

operator/mina/lib/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use mina_tree::proofs::verification::verify_block;
88
use mina_tree::proofs::verifier_index::{get_verifier_index, VerifierKind};
99
use mina_tree::verifier::get_srs;
1010

11-
// TODO: check these
12-
const MAX_PROOF_SIZE: usize = 15 * 1024;
11+
// TODO(xqft): check proof size
12+
const MAX_PROOF_SIZE: usize = 16 * 1024;
1313
const MAX_PUB_INPUT_SIZE: usize = 1024;
1414

1515
#[no_mangle]

operator/mina/mina.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
"unsafe"
1212
)
1313

14-
const MAX_PROOF_SIZE = 15 * 1024
14+
// TODO(xqft): check proof size
15+
const MAX_PROOF_SIZE = 16 * 1024
1516
const MAX_PUB_INPUT_SIZE = 1024
1617

1718
func VerifyProtocolStateProof(proofBuffer [MAX_PROOF_SIZE]byte, proofLen uint, pubInputBuffer [MAX_PUB_INPUT_SIZE]byte, pubInputLen uint) bool {

0 commit comments

Comments
 (0)