Skip to content

Commit fadd571

Browse files
committed
Add parse function
1 parent 0278b04 commit fadd571

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

operator/mina/lib/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use kimchi::poly_commitment::commitment::CommitmentCurve;
99
use kimchi::verifier::verify;
1010
use kimchi::{mina_curves::pasta::Vesta, poly_commitment::srs::SRS, verifier_index::VerifierIndex};
1111

12+
pub mod openmina_block_verifier;
13+
1214
const MAX_PROOF_SIZE: usize = 10 * 1024;
1315
const MAX_PUB_INPUT_SIZE: usize = 50 * 1024;
1416

@@ -122,4 +124,3 @@ mod test {
122124
.is_ok());
123125
}
124126
}
125-
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pub fn parse_query_to_mina_block_header(mina_state_proof_vk_query: &str) {
2+
todo!()
3+
}
4+
5+
#[cfg(test)]
6+
mod test {
7+
use super::parse_query_to_mina_block_header;
8+
9+
const MINA_STATE_PROOF_VK_QUERY: &str = include_str!(
10+
"../../../../../batcher/aligned/test_files/mina/mina_state_proof_vk_query.json"
11+
);
12+
13+
#[test]
14+
fn test_parse_query_to_mina_block_header() {
15+
parse_query_to_mina_block_header(MINA_STATE_PROOF_VK_QUERY);
16+
}
17+
}

0 commit comments

Comments
 (0)