We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fed2ad4 commit feeb6aaCopy full SHA for feeb6aa
1 file changed
batcher/aligned-batcher/src/mina/mod.rs
@@ -6,6 +6,10 @@ const STATE_HASH_SIZE: usize = 32;
6
const PROTOCOL_STATE_SIZE: usize = 2056;
7
8
pub fn verify_protocol_state_proof_integrity(proof: &[u8], public_input: &[u8]) -> bool {
9
+ if public_input.len() != (STATE_HASH_SIZE + PROTOCOL_STATE_SIZE) * 2 {
10
+ return false;
11
+ }
12
+
13
debug!("Checking Mina protocol state proof");
14
if let Err(err) = check_protocol_state_proof(proof) {
15
warn!("Protocol state proof check failed: {}", err);
0 commit comments