Skip to content

Commit c18e513

Browse files
committed
Fix mina operator bindings
1 parent d359a25 commit c18e513

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

operator/mina/mina.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
// TODO(xqft): check proof size
1515
const MAX_PROOF_SIZE = 16 * 1024
16-
const MAX_PUB_INPUT_SIZE = 1024
16+
const MAX_PUB_INPUT_SIZE = 3 * 1024
1717

1818
func VerifyProtocolStateProof(proofBuffer [MAX_PROOF_SIZE]byte, proofLen uint, pubInputBuffer [MAX_PUB_INPUT_SIZE]byte, pubInputLen uint) bool {
1919
proofPtr := (*C.uchar)(unsafe.Pointer(&proofBuffer[0]))

operator/mina/mina_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func TestMinaStateProofVerifies(t *testing.T) {
1212
fmt.Println(os.Getwd())
13-
proofFile, err := os.Open("../../batcher/aligned/test_files/mina/protocol_state_proof.proof")
13+
proofFile, err := os.Open("../../batcher/aligned/test_files/mina/protocol_state.proof")
1414
if err != nil {
1515
t.Errorf("could not open mina state proof file")
1616
}
@@ -21,7 +21,7 @@ func TestMinaStateProofVerifies(t *testing.T) {
2121
t.Errorf("could not read bytes from mina state proof file")
2222
}
2323

24-
pubInputFile, err := os.Open("../../batcher/aligned/test_files/mina/protocol_state_hash.pub")
24+
pubInputFile, err := os.Open("../../batcher/aligned/test_files/mina/protocol_state.pub")
2525
if err != nil {
2626
t.Errorf("could not open mina state hash file")
2727
}

0 commit comments

Comments
 (0)